mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-30 12:29:22 +00:00
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). |
||
|---|---|---|
| .. | ||
| network | ||
| .gitignore | ||
| diff.c | ||
| general.c | ||
| Makefile | ||
| README.md | ||
| showindex.c | ||
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