summaryrefslogtreecommitdiff
path: root/examples/describe.c
Commit message (Collapse)AuthorAgeFilesLines
* print_usage functions is defined but not usedAriel O. Barria2015-06-031-0/+2
| | | | | | Use the previously created function to display a message when the arguments are not valid. ticket 3095
* describe example: function to add commits to optsBoris Egorov2015-02-061-6/+24
| | | | | | | Add safe function to (a,rea)llocate memory which terminate example on memory allocation failure. Move code to allocate commits to its own function.
* describe example: fix memory allocation sizeBoris Egorov2015-01-251-2/+4
| | | | | | | We need to allocate memory for sizeof(char *) * ncommits, not just for ncommits. Issue detected by GCC's AddressSanitizer.
* Rename git_threads_ to git_libgit2_Carlos Martín Nieto2014-11-081-2/+2
| | | | | | 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.
* describe: add exampleLinquize2014-10-121-0/+162