|
Packit |
ae9e2a |
libgit2 examples
|
|
Packit |
ae9e2a |
================
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
These examples are a mixture of basic emulation of core Git command line
|
|
Packit |
ae9e2a |
functions and simple snippets demonstrating libgit2 API usage (for use
|
|
Packit |
ae9e2a |
with Docurium). As a whole, they are not vetted carefully for bugs, error
|
|
Packit |
ae9e2a |
handling, and cross-platform compatibility in the same manner as the rest
|
|
Packit |
ae9e2a |
of the code in libgit2, so copy with caution.
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
That being said, you are welcome to copy code from these examples as
|
|
Packit |
ae9e2a |
desired when using libgit2. They have been [released to the public domain][cc0],
|
|
Packit |
ae9e2a |
so there are no restrictions on their use.
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
[cc0]: COPYING
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
For annotated HTML versions, see the "Examples" section of:
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
http://libgit2.github.com/libgit2
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
such as:
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
http://libgit2.github.com/libgit2/ex/HEAD/general.html
|