1. 09 Feb, 2016 1 commit
  2. 12 Jul, 2015 1 commit
  3. 01 Jul, 2015 1 commit
  4. 10 Jun, 2015 2 commits
  5. 11 May, 2015 1 commit
  6. 07 May, 2015 1 commit
  7. 28 Apr, 2015 1 commit
    • Fix some build warnings · 69f0032b
      In checkout.c and filter.c we were casting a sub struct
      to a parent struct which breaks the strict aliasing rules
      in C. However we can use .parent or .base to access the
      parent struct to avoid the build warnings.
      
      In remote.c the local variable error was not initialized
      or updated in some cases. For unintialized error a build
      warning will be generated. So always keep error variable
      up-to-date.
      Leo Yang committed
  8. 25 Mar, 2015 1 commit
  9. 06 Mar, 2015 2 commits
  10. 19 Feb, 2015 4 commits
  11. 18 Feb, 2015 2 commits
  12. 17 Feb, 2015 4 commits
  13. 13 Feb, 2015 2 commits
  14. 03 Feb, 2015 1 commit
    • attrcache: don't re-read attrs during checkout · 9f779aac
      During checkout, assume that the .gitattributes files aren't
      modified during the checkout.  Instead, create an "attribute session"
      during checkout.  Assume that attribute data read in the same
      checkout "session" hasn't been modified since the checkout started.
      (But allow subsequent checkouts to invalidate the cache.)
      
      Further, cache nonexistent git_attr_file data even when .gitattributes
      files are not found to prevent re-scanning for nonexistent files.
      Edward Thomson committed
  15. 09 Oct, 2014 1 commit
  16. 08 May, 2014 2 commits
  17. 06 May, 2014 1 commit
    • Add filter options and ALLOW_UNSAFE · 5269008c
      Diff and status do not want core.safecrlf to actually raise an
      error regardless of the setting, so this extends the filter API
      with an additional options flags parameter and adds a flag so that
      filters can be applied with GIT_FILTER_OPT_ALLOW_UNSAFE, indicating
      that unsafe filter application should be downgraded from a failure
      to a warning.
      Russell Belfer committed
  18. 25 Apr, 2014 1 commit
  19. 12 Dec, 2013 1 commit
    • Cleanups, renames, and leak fixes · 9cfce273
      This renames git_vector_free_all to the better git_vector_free_deep
      and also contains a couple of memory leak fixes based on valgrind
      checks.  The fixes are specifically: failure to free global dir
      path variables when not compiled with threading on and failure to
      free filters from the filter registry that had not be initialized
      fully.
      Russell Belfer committed
  20. 24 Sep, 2013 1 commit
  21. 17 Sep, 2013 9 commits
    • Bug fixes and cleanups · eefc32d5
      This contains a few bug fixes and some header and API cleanups.
      
      The main API change is that filters should now use GIT_PASSTHROUGH
      to indicate that they wish to skip processing a file instead of
      GIT_ENOTFOUND.
      
      The bug fixes include a possible out-of-range buffer access in
      the ident filter, a filter ordering problem I introduced into the
      custom filter tests on Windows, and a filter buf NUL termination
      issue that was coming up on Linux.
      Russell Belfer committed
    • Some tests with ident and crlf filters · 37f9e409
      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
    • Fix win32 warnings · e399c7ee
      I wish MSVC understood that "const char **" is not a const ptr,
      but it a non-const pointer to an array of const ptrs.  Does that
      seem like too much to ask.
      Russell Belfer committed
    • Port tests from PR 1683 · b47349b8
      This ports over some of the tests from
          https://github.com/libgit2/libgit2/pull/1683
      by @yorah and @ethomson
      Russell Belfer committed
    • Merge git_buf and git_buffer · a9f51e43
      This makes the git_buf struct that was used internally into an
      externally available structure and eliminates the git_buffer.
      
      As part of that, some of the special cases that arose with the
      externally used git_buffer were blended into the git_buf, such as
      being careful about git_buf objects that may have a NULL ptr and
      allowing for bufs with a valid ptr and size but zero asize as a
      way of referring to externally owned data.
      Russell Belfer committed
    • Add ident filter · 4b11f25a
      This adds the ident filter (that knows how to replace $Id$) and
      tweaks the filter APIs and code so that git_filter_source objects
      actually have the updated OID of the object being filtered when
      it is a known value.
      Russell Belfer committed
    • Add functions to manipulate filter lists · 40cb40fa
      Extend the git2/sys/filter API with functions to look up a filter
      and add it manually to a filter list.  This requires some trickery
      because the regular attribute lookups and checks are bypassed when
      this happens, but in the right hands, it will allow a user to have
      granular control over applying filters.
      Russell Belfer committed
    • Update filter registry code · 0646634e
      This updates the git filter registry to be a little cleaner and
      plugs some memory leaks.
      Russell Belfer committed
    • Hook up filter initialize callback · 29e92d38
      I knew I forgot something
      Russell Belfer committed