libgit2/examples
Russell Belfer bbe6dbec81 Add explicit git_index ptr to diff and checkout
A number of diff APIs and the `git_checkout_index` API take a
`git_repository` object an operate on the index.  This updates
them to take a `git_index` pointer explicitly and only fall back
on the `git_repository` index if the index input is NULL.  This
makes it easier to operate on a temporary index.
2012-11-14 23:29:48 -08:00
..
network Fix various cross-platform build issues 2012-11-09 13:52:07 -08:00
.gitignore update examples content to be compilable and up to date 2011-06-15 09:40:06 -07:00
diff.c Add explicit git_index ptr to diff and checkout 2012-11-14 23:29:48 -08:00
general.c index refactoring 2012-10-29 20:04:21 -05:00
Makefile Improve docs, examples, warnings 2012-11-01 14:08:30 -07:00
README.md Updating language in examples README 2012-07-10 21:50:36 -07:00
showindex.c Improve docs, examples, warnings 2012-11-01 14:08:30 -07:00

libgit2 examples

These examples are meant as thin, easy-to-read snippets for Docurium (https://github.com/github/docurium) rather than full-blown implementations of Git commands. They are not vetted as carefully for bugs, error handling, or cross-platform compatibility as the rest of the code in libgit2, so copy with some caution.

For HTML versions, check "Examples" at http://libgit2.github.com/libgit2