1. 30 12月, 2006 2 次提交
    • J
      Fix 'git add' with .gitignore · 4d06f8ac
      Junio C Hamano 提交于
      When '*.ig' is ignored, and you have two files f.ig and d.ig/foo
      in the working tree,
      
      	$ git add .
      
      correctly ignored f.ig but failed to ignore d.ig/foo.  This was
      caused by a thinko in an earlier commit 4888c534, when we tried
      to allow adding otherwise ignored files.
      
      After reverting that commit, this takes a much simpler approach.
      When we have an unmatched pathspec that talks about an existing
      pathname, we know it is an ignored path the user tried to add,
      so we include it in the set of paths directory walker returned.
      
      This does not let you say "git add -f D" on an ignored directory
      D and add everything under D.  People can submit a patch to
      further allow it if they want to, but I think it is a saner
      behaviour to require explicit paths to be spelled out in such a
      case.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4d06f8ac
    • J
      Revert "read_directory: show_both option." · c889763b
      Junio C Hamano 提交于
      This reverts commit 4888c534.
      c889763b
  2. 25 12月, 2006 2 次提交
  3. 21 12月, 2006 1 次提交
    • J
      simplify inclusion of system header files. · 85023577
      Junio C Hamano 提交于
      This is a mechanical clean-up of the way *.c files include
      system header files.
      
       (1) sources under compat/, platform sha-1 implementations, and
           xdelta code are exempt from the following rules;
      
       (2) the first #include must be "git-compat-util.h" or one of
           our own header file that includes it first (e.g. config.h,
           builtin.h, pkt-line.h);
      
       (3) system headers that are included in "git-compat-util.h"
           need not be included in individual C source files.
      
       (4) "git-compat-util.h" does not have to include subsystem
           specific header files (e.g. expat.h).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      85023577
  4. 06 12月, 2006 1 次提交
    • J
      read-tree: further loosen "working file will be lost" check. · f8a9d428
      Junio C Hamano 提交于
      This follows up commit ed93b449 where we removed overcautious
      "working file will be lost" check.
      
      A new option "--exclude-per-directory=.gitignore" can be used to
      tell the "git-read-tree" command that the user does not mind
      losing contents in untracked files in the working tree, if they
      need to be overwritten by a merge (either a two-way "switch
      branches" merge, or a three-way merge).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      f8a9d428
  5. 28 9月, 2006 1 次提交
  6. 09 9月, 2006 1 次提交
  7. 28 8月, 2006 1 次提交
  8. 27 8月, 2006 2 次提交
  9. 10 7月, 2006 1 次提交
  10. 20 5月, 2006 1 次提交
  11. 17 5月, 2006 2 次提交