- 07 Apr, 2015 1 commit
-
-
Patrick Steinhardt committed
-
- 19 Mar, 2015 1 commit
-
-
Patrick Steinhardt committed
-
- 08 May, 2014 1 commit
-
-
This is quite close to running "git for-each-ref" except: 1. It does not take any formatting or selection options at all. 2. The output is not sorted. I wrote it to look at debugging some issues with ref iteration, but there's no reason it can't live on as an example command.
Jeff King committed
-
- 05 Mar, 2014 1 commit
-
-
Jiri Pospisil committed
-
- 30 Oct, 2013 1 commit
-
-
This reorganizes a few of the examples so that the main function comes first with the argument parsing extracted into a helper that can come at the end of the file (so the example focuses more on the use of libgit2 instead of command line support). This also creates a shared examples/common.[ch] so that useful helper funcs can be shared across examples instead of repeated.
Russell Belfer committed
-
- 09 Oct, 2013 1 commit
-
-
Ben Straub committed
-
- 16 Sep, 2013 1 commit
-
-
Ben Straub committed
-
- 16 Aug, 2013 1 commit
-
-
Russell Belfer committed
-
- 10 Jul, 2013 2 commits
-
-
Russell Belfer committed
-
Russell Belfer committed
-
- 20 Jun, 2013 1 commit
-
-
Russell Belfer committed
-
- 16 May, 2013 1 commit
-
-
This adds an example implementation that emulates git cat-file. It is a convenient and relatively simple example of getting data out of a repository. Implementing this also revealed that there are a number of APIs that are still not using const pointers to objects that really ought to be. The main cause of this is that `git_vector_bsearch` may need to call `git_vector_sort` before doing the search, so a const pointer to the vector is not allowed. However, for tree objects, with a little care, we can ensure that the vector of tree entries is always sorted and allow lookups to take a const pointer. Also, the missing const in commit objects just looks like an oversight.
Russell Belfer committed
-
- 09 Apr, 2013 1 commit
-
-
Ben Straub committed
-
- 17 Dec, 2012 1 commit
-
-
The diff constructor functions had some confusing names, where the "old" side of the diff was coming after the "new" side. This reverses the order in the function name to make it less confusing. Specifically... * git_diff_index_to_tree becomes git_diff_tree_to_index * git_diff_workdir_to_index becomes git_diff_index_to_workdir * git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
Russell Belfer committed
-
- 01 Nov, 2012 1 commit
-
-
This improves docs in some of the public header files, cleans up and improves some of the example code, and fixes a couple of pedantic warnings in places.
Russell Belfer committed
-
- 02 Mar, 2012 2 commits
-
-
* Implemented git_diff_index_to_tree * Reworked git_diff_options structure to handle more options * Made most of the options in git_diff_options actually work * Reorganized code a bit to remove some redundancy * Added option parsing to examples/diff.c to test most options
Russell Belfer committed -
This fixes several bugs, updates tests and docs, eliminates the FILE* assumption in favor of printing callbacks for the diff patch formatter helpers, and adds a "diff" example function that can perform a diff from the command line.
Russell Belfer committed
-
- 16 Sep, 2011 1 commit
-
-
Reverted signature of git_signature_new. Removed error check wrappers (voted down). Made Makefile work out of the box on Linux and Solaris when standard cmake build instructions for the library are followed.
David Boyce committed
-
- 13 Sep, 2011 1 commit
-
-
David Boyce committed
-
- 15 Jun, 2011 1 commit
-
-
Scott Chacon committed
-