summaryrefslogtreecommitdiff
path: root/examples/common.c
Commit message (Collapse)AuthorAgeFilesLines
* - BUGFIX #2133 (@fourplusone) in smart_protocol.cMiha2014-02-251-1/+1
| | | | | | - 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
* Replace copyright topmatter in example filesBen Straub2013-11-021-3/+10
|
* Extract common example helpers and reorg examplesRussell Belfer2013-10-291-0/+184
This reorganizes a few of the examples so that the main function comes first with the argument parsing extracted into a helper that can come at the end of the file (so the example focuses more on the use of libgit2 instead of command line support). This also creates a shared examples/common.[ch] so that useful helper funcs can be shared across examples instead of repeated.