author | Linus Torvalds <torvalds@osdl.org> | |
Thu, 18 May 2006 19:07:31 +0000 (12:07 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 18 May 2006 19:07:31 +0000 (12:07 -0700) | ||
commit | 8dcf39c46e2931ca02b18b1ea3a6b21f446d8de8 | |
tree | faa37fc9e41acdfb704ece258315fd37ddc6bcb4 | tree | snapshot |
parent | e8f990b4e4b56f214138cc475c19e5a253e9148e | commit | diff |
Prevent bogus paths from being added to the index.
With this one, it's now a fatal error to try to add a pathname
that cannot be added with "git add", i.e.
[torvalds@g5 git]$ git add .git/config
fatal: unable to add .git/config to index
and
[torvalds@g5 git]$ git add foo/../bar
fatal: unable to add foo/../bar to index
instead of the old "Ignoring path xyz" warning that would end up
silently succeeding on any other paths.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
With this one, it's now a fatal error to try to add a pathname
that cannot be added with "git add", i.e.
[torvalds@g5 git]$ git add .git/config
fatal: unable to add .git/config to index
and
[torvalds@g5 git]$ git add foo/../bar
fatal: unable to add foo/../bar to index
instead of the old "Ignoring path xyz" warning that would end up
silently succeeding on any other paths.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | diff | blob | history | |
read-cache.c | diff | blob | history | |
update-index.c | diff | blob | history |