- 17 Sep, 2013 2 commits
-
-
Fixed the filter order to match core Git, too. This test demonstrates an interesting behavior of core Git (which is totally reasonable and which libgit2 matches, although mostly by coincidence). If you use the ident filter and commit a file with a garbage ident in it, like '$Id: this is just garbage$' and then immediately do a 'git checkout-index' with the new file, Git will not consider the file out of date and will not overwrite the file with an updated $Id$. Libgit2 has the same behavior. If you remove the file and then do a checkout-index, it will be replaced with a filtered version that has injected the OID correctly.
Russell Belfer committed -
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
Carlos Martín Nieto committed
-
- 09 Sep, 2013 8 commits
-
-
Russell Belfer committed
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
- 03 Sep, 2013 1 commit
-
-
Also, this converts the examples/CMakeLists.txt from explicitly listing to just globbing for all the individual C files.
Russell Belfer committed
-
- 01 Sep, 2013 2 commits
-
-
Krzysztof Adamski committed
-
Krzysztof Adamski committed
-
- 16 Aug, 2013 2 commits
-
-
Russell Belfer committed
-
Russell Belfer committed
-
- 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
-