1. 24 8月, 2009 1 次提交
  2. 13 2月, 2009 1 次提交
    • F
      Support "\" in non-wildcard exclusion entries · dd482eea
      Finn Arne Gangstad 提交于
      "\" was treated differently in exclude rules depending on whether a
      wildcard match was done. For wildcard rules, "\" was de-escaped in
      fnmatch, but this was not done for other rules since they used strcmp
      instead.  A file named "#foo" would not be excluded by "\#foo", but would
      be excluded by "\#foo*".
      
      We now treat all rules with "\" as wildcard rules.
      
      Another solution could be to de-escape all non-wildcard rules as we
      read them, but we would have to do the de-escaping exactly as fnmatch
      does it to avoid inconsistencies.
      Signed-off-by: NFinn Arne Gangstad <finnag@pvv.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      dd482eea
  3. 19 12月, 2008 1 次提交
  4. 04 9月, 2008 1 次提交
  5. 24 5月, 2008 1 次提交
  6. 13 3月, 2008 1 次提交
    • J
      add test_cmp function for test scripts · 82ebb0b6
      Jeff King 提交于
      Many scripts compare actual and expected output using
      "diff -u". This is nicer than "cmp" because the output shows
      how the two differ. However, not all versions of diff
      understand -u, leading to unnecessary test failure.
      
      This adds a test_cmp function to the test scripts and
      switches all "diff -u" invocations to use it. The function
      uses the contents of "$GIT_TEST_CMP" to compare its
      arguments; the default is "diff -u".
      
      On systems with a less-capable diff, you can do:
      
        GIT_TEST_CMP=cmp make test
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      82ebb0b6
  7. 05 2月, 2008 1 次提交
    • J
      gitignore(5): Allow "foo/" in ignore list to match directory "foo" · d6b8fc30
      Junio C Hamano 提交于
      A pattern "foo/" in the exclude list did not match directory
      "foo", but a pattern "foo" did.  This attempts to extend the
      exclude mechanism so that it would while not matching a regular
      file or a symbolic link "foo".  In order to differentiate a
      directory and non directory, this passes down the type of path
      being checked to excluded() function.
      
      A downside is that the recursive directory walk may need to run
      lstat(2) more often on systems whose "struct dirent" do not give
      the type of the entry; earlier it did not have to do so for an
      excluded path, but we now need to figure out if a path is a
      directory before deciding to exclude it.  This is especially bad
      because an idea similar to the earlier CE_UPTODATE optimization
      to reduce number of lstat(2) calls would by definition not apply
      to the codepaths involved, as (1) directories will not be
      registered in the index, and (2) excluded paths will not be in
      the index anyway.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d6b8fc30
  8. 23 11月, 2007 1 次提交
  9. 03 7月, 2007 1 次提交
  10. 22 5月, 2007 1 次提交
  11. 04 3月, 2007 1 次提交
  12. 13 2月, 2006 1 次提交
  13. 03 11月, 2005 1 次提交
    • A
      remove CR/LF from .gitignore · d317e438
      Alex Riesen 提交于
      For everyone cursed by dos/windows line endings (aka CRLF):
      
      The code reading the .gitignore files (excludes and excludes per
      directory) leaves \r in the patterns, which causes fnmatch to fail for
      no obvious reason. Just remove a "\r" preceding a "\n"
      unconditionally.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d317e438
  14. 12 8月, 2005 1 次提交
  15. 30 7月, 2005 1 次提交
  16. 26 7月, 2005 1 次提交
    • J
      git-ls-files: --exclude mechanism updates. · f87f9497
      Junio C Hamano 提交于
      Add --exclude-per-directory=<name> option that specifies a file
      to contain exclude patterns local to that directory and its
      subdirectories.  Update the exclusion logic to be able to say
      "include files that match this more specific pattern, even
      though later exclude patterns may match them".  Also enhances
      that a pattern can contain '/' in which case fnmatch is called
      with FNM_PATHNAME flag to match the entire path. 
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      f87f9497