summaryrefslogtreecommitdiff
path: root/examples/ls-files.c
Commit message (Collapse)AuthorAgeFilesLines
* examples: normalize decls and usage of options structsEtienne Samson2019-11-061-6/+6
|
* examples: create common lg2 executablePatrick Steinhardt2019-02-151-11/+2
| | | | | | | | | | | | | | | | | | Inside of our networking example code, we have a git2 executable that acts as an entry point to all the different network examples. As such, it is kind of the same like the normal git(1) executable in that it simply arbitrates to the respective subcommands. Let's extend this approach and merge all examples into a single standalone lg2 executable. Instead of building an executable for all the existing examples we have, we now bundle them all inside of the lg2 one and let them be callable via subcommands. In the process, we can get rid of duplicated library initialization, deinitialization and repository discovery code. Instead of having each subcommand handle these on its own, we simply do it inside of the single main function now.
* tests: ls-files: use puts instead of printf and fix typosCarson Howard2018-05-021-4/+4
|
* examples: ls-files: print entry path only when entry is foundCarson Howard2018-03-271-5/+4
|
* examples: ls-files: update print_paths to print all casesCarson Howard2018-03-271-19/+17
|
* test: ls-files: remove dependency on git_arrayCarson Howard2018-03-271-11/+12
|
* examples: ls-files: fix build errorCarson Howard2018-03-271-1/+1
|
* examples: ls-files: address PR and styleCarson Howard2018-03-271-24/+14
|
* examples: ls-files: use git_array_t to handle filesCarson Howard2018-03-271-11/+11
|
* examples: ls-files: build file list with arrayCarson Howard2018-03-271-9/+9
|
* examples: ls-files: fix compile errorCarson Howard2018-03-271-3/+7
|
* examples: ls-files: fix style and refactorCarson Howard2018-03-271-70/+65
|
* examples: ls-files: handle --error-unmatchCarson Howard2018-03-271-15/+42
|
* examples: ls-files: show current files in indexCarson Howard2018-03-271-20/+109
|
* examples: ls-files: list filesCarson Howard2018-03-271-0/+37