1. 23 Apr, 2013 1 commit
    • Improve diff config options handling · b1ff7004
      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
  2. 21 Apr, 2013 1 commit
  3. 03 Mar, 2013 1 commit
    • Fix a few leaks · 323bb885
      `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
  4. 01 Mar, 2013 2 commits
  5. 22 Feb, 2013 1 commit
    • Fix tests for find_similar and related · 6f9d5ce8
      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
  6. 05 Feb, 2013 1 commit
  7. 30 Jan, 2013 2 commits
    • Free buffer at end of test · 3bf68be4
      Russell Belfer committed
    • Add helper for diff line stats · f1e2735c
      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
  8. 11 Jan, 2013 1 commit
    • Fix diff patch line number calculation · 805c476c
      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
  9. 27 Nov, 2012 2 commits
  10. 15 Nov, 2012 1 commit
  11. 25 Oct, 2012 1 commit
  12. 25 Sep, 2012 1 commit
    • Add const to all shared pointers in diff API · bae957b9
      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
  13. 02 May, 2012 1 commit
  14. 01 May, 2012 1 commit
  15. 30 Apr, 2012 1 commit
  16. 25 Apr, 2012 1 commit