1. 27 10月, 2011 7 次提交
  2. 24 10月, 2011 1 次提交
  3. 27 9月, 2011 1 次提交
    • N
      git-read-tree.txt: update sparse checkout examples · 5e821231
      Nguyễn Thái Ngọc Duy 提交于
      The negation example uses '*' to match everything. This used to work
      before 9037026d (unpack-trees: fix sparse checkout's "unable to match
      directories") because back then, the list of paths is used to match
      sparse patterns, so with the patterns
      
          *
          !subdir/
      
      subdir/ always matches any path that start with subdir/ and "*" has no
      chance to get tested. The result is subdir is excluded.
      
      After the said commit, a tree structure is dynamically created and
      sparse pattern matching now follows closely how read_directory()
      applies .gitignore. This solves one problem, but reveals another one.
      
      With this new strategy, "!subdir/" rule will be only tested once when
      "subdir" directory is examined. Entries inside subdir, when examined,
      will match "*" and are (correctly) re-added again because any rules
      without a slash will match at every directory level. In the end, "*"
      can revert every negation rules.
      
      In order to correctly exclude subdir, we must use
      
          /*
          !subdir
      
      to limit "match all" rule at top level only.
      
      "*" rule has no actual use in sparse checkout and can be confusing to
      users. While we can automatically turn "*" to "/*", this violates
      .gitignore definition. Instead, discourage "*" in favor of "/*" (in
      the second example).
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5e821231
  4. 24 9月, 2011 8 次提交
  5. 22 9月, 2011 3 次提交
  6. 21 9月, 2011 1 次提交
  7. 20 9月, 2011 1 次提交
  8. 13 9月, 2011 2 次提交
  9. 12 9月, 2011 11 次提交
  10. 10 9月, 2011 1 次提交
  11. 07 9月, 2011 2 次提交
  12. 31 8月, 2011 1 次提交
  13. 30 8月, 2011 1 次提交