examples/add.c


Log

Author Commit Date CI Message
Peter Pettersson 7dcc29fc 2021-10-22T22:51:59 Make enum in src,tests and examples C90 compliant by removing trailing comma.
Edward Thomson eabbee04 2021-11-11T12:48:19 example: declare print_usage function
Edward Thomson 8be22614 2021-11-11T12:47:02 examples: remove unused function
Peter Salomonsen dc2beb7e 2020-02-24T18:30:16 examples: additions and fixes add example for git commit fix example for git add add example for git push
Etienne Samson 313908f9 2019-11-06T11:08:49 examples: normalize decls and usage of options structs
Etienne Samson 4a4ad2bc 2019-11-06T11:08:45 examples: add comments to add.c
Etienne Samson d4a593ef 2019-11-06T11:17:52 examples: modernize add code
Etienne Samson cd5e33fb 2019-11-06T11:08:23 global: DRY includes of assert.h
Etienne Samson 6cf47726 2019-01-15T13:54:18 examples/add: add explanatory comments and reformat
Patrick Steinhardt ead10785 2019-01-24T11:31:49 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.
Patrick Steinhardt fc293919 2016-08-16T11:43:10 examples: add: fix type casting warning
Carlos Martín Nieto 799e22ea 2014-10-23T17:34:41 Rename git_threads_ to git_libgit2_ 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.
Miha 300f4412 2014-02-25T11:56:11 - BUGFIX #2133 (@fourplusone) in smart_protocol.c - added MSVC cmake definitions to disable warnings - general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows - some MSVC reported warning fixes
Ben Straub 6cb831bd 2013-11-02T05:33:26 Replace copyright topmatter in example files
Ben Straub dbfd2833 2013-10-30T07:21:12 add.c: proper frontmatter
Ben Straub e568bedf 2013-10-30T06:08:54 add.c example: deploy helpers, reorg
Russell Belfer 0c52b204 2013-09-09T11:07:17 Make work if built with threading enabled
Krzysztof Adamski b2395a82 2013-09-04T18:49:10 Only use callbacks when -n or -v in add example.
Krzysztof Adamski 04fd2665 2013-09-04T18:44:12 Move statement after declarations in add example.
Krzysztof Adamski 9a0e42c6 2013-09-04T18:43:14 Remove unnececery arguments priting in add example.
Krzysztof Adamski 813937ce 2013-09-04T18:42:47 Better usage info in add example.
Krzysztof Adamski 24d23220 2013-09-04T18:34:03 Add -u option to add example.
Krzysztof Adamski 62020aa8 2013-09-02T02:01:40 Adding add example.
Krzysztof Adamski e8fa14d3 2013-09-03T19:11:50 Supported options information in add example.