author | Junio C Hamano <junkio@cox.net> | |
Mon, 25 Dec 2006 11:13:45 +0000 (03:13 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 25 Dec 2006 11:29:08 +0000 (03:29 -0800) | ||
commit | e23ca9e1f95a756bfe598568be9d03059db1dad2 | |
tree | ab1e60a204db751935224bfae53db6709a9e46ad | tree | snapshot |
parent | 4888c534099012d71d24051deb5b14319747bd1a | commit | diff |
git-add: add ignored files when asked explicitly.
One thing many people found confusing about git-add was that a
file whose name matches an ignored pattern could not be added to
the index. With this, such a file can be added by explicitly
spelling its name to git-add.
Fileglobs and recursive behaviour do not add ignored files to
the index. That is, if a pattern '*.o' is in .gitignore, and
two files foo.o, bar/baz.o are in the working tree:
$ git add foo.o
$ git add '*.o'
$ git add bar
Only the first form adds foo.o to the index.
Signed-off-by: Junio C Hamano <junkio@cox.net>
One thing many people found confusing about git-add was that a
file whose name matches an ignored pattern could not be added to
the index. With this, such a file can be added by explicitly
spelling its name to git-add.
Fileglobs and recursive behaviour do not add ignored files to
the index. That is, if a pattern '*.o' is in .gitignore, and
two files foo.o, bar/baz.o are in the working tree:
$ git add foo.o
$ git add '*.o'
$ git add bar
Only the first form adds foo.o to the index.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-add.txt | diff | blob | history | |
builtin-add.c | diff | blob | history |