libgit2/examples
Greg Price 8f7f5e5543 examples: rev-list
This demonstrates parts of the interface for specifying revisions that
Git users are familiar with from 'git rev-list', 'git log', and other
Git commands.  A similar query interface is used in out-of-core
command-line programs that browse a Git repo (like 'tig'), and may be
useful for an 'advanced search' interface in GUI or web applications.

In this version, we parse all the query modifiers we can support with
the existing logic in revwalk: basic include/exclude commits, and the
ordering flags.  More logic will be required to support '--grep',
'--author', the pickaxe '-S', etc.

Signed-off-by: Greg Price <price@mit.edu>
2013-04-06 20:51:16 -07:00
..
network Give props to Martin Pool 2013-02-26 09:00:37 +00:00
.gitignore examples: rev-list 2013-04-06 20:51:16 -07:00
diff.c Simplify diff example using revparse 2013-03-02 13:52:38 -08: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
rev-list.c examples: rev-list 2013-04-06 20:51:16 -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