summaryrefslogtreecommitdiff
path: root/examples/for-each-ref.c
Commit message (Collapse)AuthorAgeFilesLines
* for-each-ref example: init/shutdown libgit2 in mainBoris Egorov2015-02-051-0/+3
| | | | | | | I don't get how it was working without git_libgit2_init() call. I run it and libgit2 throws assertion somewhere in its internals. Now it works. Updated commit with shutdown at the end.
* examples: add a basic for-each-ref examplepeff/iconvJeff King2014-05-081-0/+46
This is quite close to running "git for-each-ref" except: 1. It does not take any formatting or selection options at all. 2. The output is not sorted. I wrote it to look at debugging some issues with ref iteration, but there's no reason it can't live on as an example command.