1. 20 Nov, 2015 1 commit
  2. 17 Nov, 2015 1 commit
    • checkout::crlf test: don't crash when no idx entry · de999f26
      When there's no matching index entry (for whatever reason), don't
      try to dereference the null return value to get at the id.
      
      Otherwise when we break something in the index API, the checkout
      test crashes for confusing reasons and causes us to step through
      it in a debugger thinking that we had broken much more than we
      actually did.
      Edward Thomson committed
  3. 26 Jun, 2015 1 commit
  4. 22 Jun, 2015 3 commits
  5. 16 Jun, 2015 2 commits
    • tests: tick the index when we count OID calculations · e44abe16
      These tests want to test that we don't recalculate entries which match
      the index already. This is however something we force when truncating
      racily-clean entries.
      
      Tick the index forward as we know that we don't perform the
      modifications which the racily-clean code is trying to avoid.
      Carlos Martín Nieto committed
    • crlf: tick the index forward to work around racy-git behaviour · c4e6ab5f
      In order to avoid racy-git, we zero out the file size for entries with
      the same timestamp as the index (or during the initial checkout). This
      is the case in a couple of crlf tests, as the code is fast enough to do
      everything in the same second.
      
      As we know that we do not perform the modification just after writing
      out the index, which is what this is designed to work around, tick the
      mtime of the index file such that it doesn't agree with the files
      anymore, and we do not zero out these entries.
      Carlos Martín Nieto committed
  6. 26 May, 2015 1 commit
  7. 25 Mar, 2015 1 commit
  8. 03 Mar, 2015 2 commits
  9. 27 Feb, 2015 1 commit
  10. 20 Jan, 2015 1 commit
  11. 24 Jun, 2014 1 commit
  12. 23 Jun, 2014 1 commit
    • crlf: pass-through mixed EOL buffers from LF->CRLF · 5a76ad35
      When checking out files, we're performing conversion into the user's
      native line endings, but we only want to do it for files which have
      consistent line endings. Refuse to perform the conversion for mixed-EOL
      files.
      
      The CRLF->LF filter is left as-is, as that conversion is considered to be
      normalization by git and should force a conversion of the line endings.
      Carlos Martín Nieto committed
  13. 06 Mar, 2014 1 commit
  14. 09 Feb, 2014 1 commit
  15. 25 Jan, 2014 1 commit
  16. 14 Nov, 2013 1 commit
  17. 17 Sep, 2013 3 commits
    • More filtering tests including order · eab3746b
      This adds more tests of filters, including the ident filter when
      mixed with custom filters.  I was able to combine with the reverse
      filter and demonstrate that the order of filter application with
      the default priority constants matches the order of core Git.
      
      Also, this fixes two issues in the ident filter: preventing ident
      expansion on binary files and avoiding a NULL dereference when
      dollar sign characters are found without Id.
      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
    • Start of filter API + git_blob_filtered_content · 0cf77103
      This begins the process of exposing git_filter objects to the
      public API.  This includes:
      
      * new public type and API for `git_buffer` through which an
        allocated buffer can be passed to the user
      * new API `git_blob_filtered_content`
      * make the git_filter type and GIT_FILTER_TO_... constants public
      Russell Belfer committed
  18. 25 Mar, 2013 3 commits
  19. 22 Mar, 2013 1 commit
  20. 05 Feb, 2013 1 commit
  21. 26 Jan, 2013 1 commit
  22. 25 Jan, 2013 1 commit
  23. 18 Jan, 2013 1 commit
  24. 17 Jan, 2013 1 commit