- 26 Jul, 2013 1 commit
-
-
Brendan Macmillan committed
-
- 10 Jul, 2013 10 commits
-
-
Russell Belfer committed
-
This fixes the way the example log program decides if a merge commit should be shown when a pathspec is given. Also makes it easier to use the pathspec API to just check "does a tree match anything in the pathspec" without allocating a match list.
Russell Belfer committed -
Russell Belfer committed
-
Russell Belfer committed
-
Russell Belfer committed
-
Russell Belfer committed
-
Russell Belfer committed
-
Russell Belfer committed
-
This adds more command line processing to the example version of log. In particular, this adds the funky command line processing that allows an arbitrary series of revisions followed by an arbitrary number of paths and/or glob patterns. The actual logging part still isn't implemented.
Russell Belfer committed -
Russell Belfer committed
-
- 20 Jun, 2013 4 commits
-
-
Russell Belfer committed
-
Russell Belfer committed
-
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.
Russell Belfer committed -
Russell Belfer committed
-
- 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 1 commit
-
-
Edward Thomson committed
-