1. 17 Feb, 2017 2 commits
  2. 19 Apr, 2016 1 commit
    • ignore: fix directory limits when searching for star-star · 1c3018eb
      In order to match the star-star, we disable the flag that's looking for
      a single path element, but that leads to searching for the pattern in
      the middle of elements in the input string.
      
      Mark when we're handing a star-star so we jump over the elements in our
      attempt to match the part of the pattern that comes after the star-star.
      
      While here, tighten up the check so we don't allow invalid rules
      through.
      Carlos Martín Nieto committed
  3. 18 Apr, 2016 1 commit
  4. 02 Apr, 2016 1 commit
  5. 13 May, 2015 1 commit
  6. 12 May, 2015 3 commits
  7. 23 Apr, 2015 1 commit
  8. 02 May, 2014 1 commit
    • Improve handling of fake home directory · 0f603132
      There are a few tests that set up a fake home directory and a
      fake GLOBAL search path so that we can test things in global
      ignore or attribute or config files.  This cleans up that code to
      work more robustly even if there is a test failure.  This also
      fixes some valgrind warnings where scanning search paths for
      separators could end up doing a little bit of sketchy data access
      when coming to the end of search list.
      Russell Belfer committed
  9. 01 May, 2014 1 commit
  10. 18 Apr, 2014 1 commit
  11. 14 Apr, 2014 1 commit
    • Fix core.excludesfile named .gitignore · a9528b8f
      Ignore rules with slashes in them are matched using FNM_PATHNAME
      and use the path to the .gitignore file from the root of the
      repository along with the path fragment (including slashes) in
      the ignore file itself.  Unfortunately, the relative path to the
      .gitignore file was being applied to the global core.excludesfile
      if that was also named ".gitignore".
      
      This fixes that with more precise matching and includes test for
      ignore rules with leading slashes (which were the primary example
      of this being broken in the real world).
      
      This also backports an improvement to the file context logic from
      the threadsafe-iterators branch where we don't rely on mutating
      the key of the attribute file name to generate the context path.
      Russell Belfer committed
  12. 06 Apr, 2014 1 commit
  13. 05 Apr, 2014 1 commit
  14. 14 Nov, 2013 1 commit
  15. 29 May, 2013 1 commit
  16. 24 May, 2013 1 commit
    • Add ~ expansion to global attributes and excludes · 7a5ee3dc
      This adds ~/ prefix expansion for the value of core.attributesfile
      and core.excludesfile, plus it fixes the fact that the attributes
      cache was holding on to the string data from the config for a long
      time (instead of making its own strdup) which could have caused a
      problem if the config was refreshed.  Adds a test for the new
      expansion capability.
      Russell Belfer committed
  17. 22 Feb, 2013 2 commits