libgit2/examples
Russell Belfer a7ed746093 Add rudimentary error checks and reformat comments
There were a number of functions assigning their return value to
`error` without much explanation.  I added in some rudimentary
error checking to help flesh out the example.

Also, I reformatted all of the comments down to 80 cols (and in
some cases, slightly updated the wording).
2013-02-15 15:58:13 -08:00
..
network Allow progress callback to cancel fetch 2013-02-05 10:59:58 -08:00
.gitignore Make building samples more friendly 2012-12-16 10:50:10 -08:00
diff.c Don't clear the opt instance in the diff example. 2013-01-23 07:47:40 +01:00
general.c Add rudimentary error checks and reformat comments 2013-02-15 15:58:13 -08:00
Makefile Fix diff constructor name order confusion 2012-12-17 11:00:53 -08:00
README.md Updating language in examples README 2012-07-10 21:50:36 -07:00
showindex.c Update showindex example 2012-12-28 22:00:24 -08: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