- 23 Apr, 2013 1 commit
-
-
This makes diff use the cvar cache for config options where possible, and also adds support for a number of other config options to diff including "diff.context", "diff.ignoreSubmodules", "diff.noprefix", "diff.mnemonicprefix", and "core.abbrev". To make this natural, this involved a rearrangement of the code that allocates the diff object vs. the code that initializes it based on the combination of options passed in by the user and read from the config. This commit includes tests for most of these new options as well.
Russell Belfer committed
-
- 21 Apr, 2013 1 commit
-
-
Russell Belfer committed
-
- 03 Mar, 2013 1 commit
-
-
`git_diff_get_patch()` would unconditionally load the patch object and then simply leak it if the user hadn't requested it. Short-circuit loading the object if the user doesn't want it. The rest of the plugs are simply calling the free functions of objects allocated during the tests.
Carlos Martín Nieto committed
-
- 01 Mar, 2013 2 commits
-
-
This removes assertions that prevent us from having an empty git_config object and then updates some tests that were dependent on global config state to use an empty config before running anything.
Russell Belfer committed -
Russell Belfer committed
-
- 22 Feb, 2013 1 commit
-
-
This fixes both a test that I broke in diff::patch where I was relying on the current state of the working directory for the renames test data and fixes an unstable test in diff::rename where the environment setting for the "diff.renames" config was being allowed to influence the test results.
Russell Belfer committed
-
- 05 Feb, 2013 1 commit
-
-
Fix #1308
nulltoken committed
-
- 30 Jan, 2013 2 commits
-
-
Russell Belfer committed
-
This adds a `git_diff_patch_line_stats()` API that gets the total number of adds, deletes, and context lines in a patch. This will make it a little easier to emulate `git diff --stat` and the like. Right now, this relies on generating the `git_diff_patch` object, which is a pretty heavyweight way to get stat information. At some future point, it would probably be nice to be able to get this information without allocating the entire `git_diff_patch`, but that's a much larger project.
Russell Belfer committed
-
- 11 Jan, 2013 1 commit
-
-
This was just wrong. Added a test that verifying patch line numbers even for hunks further into a file and then fixed the algorithm. I needed to add a little extra state into the patch so that I could track old and new file numbers independently, but it should be okay.
Russell Belfer committed
-
- 27 Nov, 2012 2 commits
-
-
Russell Belfer committed
-
This makes the diff functions that take callbacks both take the payload parameter after the callback function pointers and pass the payload as the last argument to the callback function instead of the first. This should make them consistent with other callbacks across the API.
Russell Belfer committed
-
- 15 Nov, 2012 1 commit
-
-
The diff API is not in the parameter order one would expect from other libgit2 APIs. This fixes that.
Russell Belfer committed
-
- 25 Oct, 2012 1 commit
-
-
This adds an API to generate a complete single-file patch text from a git_diff_patch object.
Russell Belfer committed
-
- 25 Sep, 2012 1 commit
-
-
There are a lot of places where the diff API gives the user access to internal data structures and many of these were being exposed through non-const pointers. This replaces them all with const pointers for any object that the user can access but is still owned internally to the git_diff_list or git_diff_patch objects. This will probably break some bindings... Sorry!
Russell Belfer committed
-
- 02 May, 2012 1 commit
-
-
This should restore the ability to include libgit2 headers in C++ projects. Cherry picked 2de60205 from development into new-error-handling.
Russell Belfer committed
-
- 01 May, 2012 1 commit
-
-
Michael Schubert committed
-
- 30 Apr, 2012 1 commit
-
-
Update the callback to provide some information related to the file change being processed and the range of the hunk, when applicable.
nulltoken committed
-
- 25 Apr, 2012 1 commit
-
-
nulltoken committed
-