- 15 Feb, 2019 1 commit
-
-
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.
Patrick Steinhardt committed
-
- 25 Jan, 2018 1 commit
-
-
Etienne Samson committed
-
- 03 Jun, 2015 1 commit
-
-
Use the previously created function to display a message when the arguments are not valid. ticket 3095
Ariel O. Barria committed
-
- 06 Feb, 2015 1 commit
-
-
Add safe function to (a,rea)llocate memory which terminate example on memory allocation failure. Move code to allocate commits to its own function.
Boris Egorov committed
-
- 25 Jan, 2015 1 commit
-
-
We need to allocate memory for sizeof(char *) * ncommits, not just for ncommits. Issue detected by GCC's AddressSanitizer.
Boris Egorov committed
-
- 08 Nov, 2014 1 commit
-
-
This describes their purpose better, as we now initialize ssl and some other global stuff in there. Calling the init function is not something which has been optional for a while now.
Carlos Martín Nieto committed
-
- 12 Oct, 2014 1 commit
-
-
Linquize committed
-