libgit2/examples
Russell Belfer 22b6b82f2c Add status flags to force output sort order
Files in status will, be default, be sorted according to the case
insensitivity of the filesystem that we're running on.  However,
in some cases, this is not desirable.  Even on case insensitive
file systems, 'git status' at the command line will generally use
a case sensitive sort (like 'ls').  Some GUIs prefer to display a
list of file case insensitively even on case-sensitive platforms.

This adds two new flags: GIT_STATUS_OPT_SORT_CASE_SENSITIVELY
and GIT_STATUS_OPT_SORT_CASE_INSENSITIVELY that will override the
default sort order of the status output and give the user control.
This includes tests for exercising these new options and makes
the examples/status.c program emulate core Git and always use a
case sensitive sort.
2013-06-20 12:16:06 -07:00
..
network examples: init the threading system 2013-04-23 16:21:47 +02:00
test examples: a test, for rev-list 2013-04-06 20:51:16 -07:00
.gitignore examples: rev-list 2013-04-06 20:51:16 -07:00
cat-file.c Add cat-file example and increase const use in API 2013-05-16 10:38:27 -07:00
diff.c Extend diff example 2013-05-17 17:33:03 -07:00
general.c refs: remove the OID/SYMBOLIC filtering 2013-05-11 11:20:38 +02:00
Makefile Initial implementation of status example 2013-06-20 11:39:31 -07:00
README.md Updating language in examples README 2012-07-10 21:50:36 -07:00
rev-list.c Fix trailing whitespaces 2013-05-15 22:41:30 +02:00
showindex.c Update showindex example 2012-12-28 22:00:24 -08:00
status.c Add status flags to force output sort order 2013-06-20 12:16:06 -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