summaryrefslogtreecommitdiff
path: root/examples/checkout.c
Commit message (Collapse)AuthorAgeFilesLines
* strarray: we should `dispose` instead of `free`Edward Thomson2020-06-011-1/+1
| | | | | | We _dispose_ the contents of objects; we _free_ objects (and their contents). Update `git_strarray_free` to be `git_strarray_dispose`. `git_strarray_free` remains as a deprecated proxy function.
* Merge pull request #5283 from pks-t/pks/example-checkout-remote-branchPatrick Steinhardt2019-12-131-5/+78
|\ | | | | examples: checkout: implement guess heuristic for remote branches
| * examples: checkout: implement guess heuristic for remote branchesPatrick Steinhardt2019-10-251-5/+78
| |
* | examples: keep track of whether we processed a "--" argEtienne Samson2019-11-061-6/+2
| |
* | global: DRY includes of assert.hEtienne Samson2019-11-061-1/+0
|/
* Fix example checkout to forbid rather than require --David Turner2019-07-241-1/+1
| | | | | | Make the example program for checkout follow git syntax, where "--" indicates a file. This was likely just a strcmp return value confusion.
* examples: create common lg2 executablePatrick Steinhardt2019-02-151-14/+1
| | | | | | | | | | | | | | | | | | 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.
* errors: remove giterr usage in examplesEdward Thomson2019-01-221-5/+5
|
* examples: add checkoutEtienne Samson2018-07-171-0/+235