- 18 May, 2013 1 commit
-
-
Add --raw output format and (some) options to invoke rename/copy detection on the diff.
Russell Belfer committed
-
- 16 May, 2013 2 commits
-
-
Russell Belfer committed
-
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
-
- 15 May, 2013 1 commit
-
-
nulltoken committed
-
- 11 May, 2013 1 commit
-
-
Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend.
Carlos Martín Nieto committed
-
- 23 Apr, 2013 1 commit
-
-
Carlos Martín Nieto committed
-
- 15 Apr, 2013 4 commits
-
-
Vicent Marti committed
-
Ben Straub committed
-
Ben Straub committed
-
This will probably prevent many lookup/free operations in calling code.
Ben Straub committed
-
- 10 Apr, 2013 1 commit
-
-
Vicent Marti committed
-
- 09 Apr, 2013 3 commits
-
-
Russell Belfer committed
-
Ben Straub committed
-
Ben Straub committed
-
- 07 Apr, 2013 2 commits
-
-
This test file could probably be improved by a framework like the one in git.git:t/, or by using a language like Python instead of shell. The other examples would benefit from tests too. Probably best to settle on a framework to write them in, then add more tests. Signed-off-by: Greg Price <price@mit.edu>
Greg Price committed -
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>
Greg Price committed
-
- 04 Apr, 2013 1 commit
-
-
Fixes #1455
Ben Straub committed
-
- 20 Mar, 2013 1 commit
-
-
lionel vitte committed
-
- 02 Mar, 2013 1 commit
-
-
When the examples/diff.c was written, there was not yet a revparse API. Now we can use it to make command line parsing way better with less code. Yay!
Russell Belfer committed
-
- 26 Feb, 2013 1 commit
-
-
Martin Pool was the original author of the code referenced in the clone example. Make note that he's given his permission and also give him the proper credit.
Martin Woodward committed
-
- 15 Feb, 2013 1 commit
-
-
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).
Russell Belfer committed
-
- 06 Feb, 2013 1 commit
-
-
Carlos Scheidegger committed
-
- 05 Feb, 2013 1 commit
-
-
This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
Ben Straub committed
-
- 31 Jan, 2013 1 commit
-
-
Ben Straub committed
-
- 23 Jan, 2013 2 commits
-
-
Edward Thomson committed
-
The version field is overwritten otherwise. The opt instance is already initialized properly.
Sebastian Bauer committed
-
- 10 Jan, 2013 1 commit
-
-
Compilers that are not aware that pthread_exit() does not return issue a warning when compiling the present code. This change exchanges the call to pthread_exit() with a simple return statement. According to the pthread specification this is equivalent.
Sebastian Bauer committed
-
- 02 Jan, 2013 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 29 Dec, 2012 1 commit
-
-
I find the showindex example to be pretty useful on occasion, but there were are couple of output tweaks I wanted, plus I wanted the ability to specify a path to an actual index file instead of having to open the whole repository. This makes those changes and expands the example slightly.
Russell Belfer committed
-
- 27 Dec, 2012 1 commit
-
-
Ben Straub committed
-
- 21 Dec, 2012 1 commit
-
-
Ben Straub committed
-
- 20 Dec, 2012 2 commits
-
-
git_remote_add -> git_remote_create git_remote_new -> git_remote_create_inmemory
Ben Straub committed -
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
-
- 16 Dec, 2012 1 commit
-
-
Ben Straub committed
-
- 14 Dec, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 13 Dec, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-