15 Commits

Author SHA1 Message Date
Etienne Samson
313908f9f5 examples: normalize decls and usage of options structs 2019-11-06 11:17:56 +01:00
Patrick Steinhardt
ead10785dc examples: create common lg2 executable
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.
2019-02-15 12:06:54 +01:00
Carson Howard
8aa437efb5 tests: ls-files: use puts instead of printf and fix typos 2018-05-02 07:55:26 -07:00
Carson Howard
d7394c3667 examples: ls-files: print entry path only when entry is found 2018-03-27 07:27:22 -07:00
Carson Howard
29ca3f33b4 examples: ls-files: update print_paths to print all cases 2018-03-27 07:18:31 -07:00
Carson Howard
7d079413ed test: ls-files: remove dependency on git_array 2018-03-27 07:18:31 -07:00
Carson Howard
ee1446506f examples: ls-files: fix build error 2018-03-27 07:18:31 -07:00
Carson Howard
e86611690e examples: ls-files: address PR and style 2018-03-27 07:18:31 -07:00
Carson Howard
3f64a9dbc0 examples: ls-files: use git_array_t to handle files 2018-03-27 07:18:31 -07:00
Carson Howard
37cbc3eaf4 examples: ls-files: build file list with array 2018-03-27 07:18:31 -07:00
Carson Howard
d2f99e0a7f examples: ls-files: fix compile error 2018-03-27 07:18:31 -07:00
Carson Howard
cd39273dbb examples: ls-files: fix style and refactor 2018-03-27 07:18:31 -07:00
Carson Howard
52d83dde97 examples: ls-files: handle --error-unmatch 2018-03-27 07:18:31 -07:00
Carson Howard
991fc08805 examples: ls-files: show current files in index 2018-03-27 07:18:31 -07:00
Carson Howard
30e919c427 examples: ls-files: list files 2018-03-27 07:18:31 -07:00