1. 22 Feb, 2013 2 commits
    • 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
    • Add diff rename tests with partial similarity · d4b747c1
      This adds some new tests that actually exercise the similarity
      metric between files to detect renames, copies, and split modified
      files that are too heavily modified.
      
      There is still more testing to do - these tests are just partially
      covering the cases.
      
      There is also one bug fix in this where a change set with only
      MODIFY being broken into ADD/DELETE (due to low self-similarity)
      without any additional RENAMED entries would end up not processing
      the split requests (because the num_rewrites counter got reset).
      Russell Belfer committed
  2. 21 Feb, 2013 1 commit
    • Initial integration of similarity metric to diff · 960a04dd
      This is the initial integration of the similarity metric into
      the `git_diff_find_similar()` code path.  The existing tests all
      pass, but the new functionality isn't currently well tested.  The
      integration does go through the pluggable metric interface, so it
      should be possible to drop in an alternative to the internal
      metric that libgit2 implements.
      
      This comes along with a behavior change for an existing interface;
      namely, passing two NULLs to git_diff_blobs (or passing NULLs to
      git_diff_blob_to_buffer) will now call the file_cb parameter zero
      times instead of one time.  I know it's strange that that change
      is paired with this other change, but it emerged from some
      initialization changes that I ended up making.
      Russell Belfer committed
  3. 20 Feb, 2013 19 commits
  4. 17 Feb, 2013 1 commit
  5. 16 Feb, 2013 2 commits
    • Clear up warnings from cppcheck · 56543a60
      The cppcheck static analyzer generates warnings for a bunch of
      places in the libgit2 code base.  All the ones fixed in this
      commit are actually false positives, but I've reorganized the
      code to hopefully make it easier for static analysis tools to
      correctly understand the structure.  I wouldn't do this if I
      felt like it was making the code harder to read or worse for
      humans, but in this case, these fixes don't seem too bad and will
      hopefully make it easier for better analysis tools to get at any
      real issues.
      Russell Belfer committed
    • Fix memory leak in p_getaddrinfo on Amiga · 71d62d39
      If gethostbyname() fails on platforms with NO_ADDRINFO, the code
      leaks the struct addrinfo that was allocated.  This fixes that
      (and a number of code formatting issues in that area of code in
      src/posix.c).
      Russell Belfer committed
  6. 15 Feb, 2013 3 commits
  7. 14 Feb, 2013 6 commits
  8. 13 Feb, 2013 2 commits
  9. 12 Feb, 2013 3 commits
  10. 11 Feb, 2013 1 commit