diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-22 14:22:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-09 01:22:25 -0700 |
commit | 1102952b45dde09d73445aa2284bcb592362fa23 (patch) | |
tree | 313f32f319e2d7fda886e7fcf9179e558eaba1ab /test-sha1.sh | |
parent | 6835550def046bfd52f3e65f248024956a6df62c (diff) | |
download | git-1102952b45dde09d73445aa2284bcb592362fa23.tar.gz |
Make git-add behave more sensibly in a case-insensitive environment
This expands on the previous patch, and allows "git add" to sanely handle
a filename that has changed case, keeping the case in the index constant,
and avoiding aliases.
In particular, if you have an index entry called "File", but the
checked-out tree is case-corrupted and has an entry called "file"
instead, doing a
git add .
(or naming "file" explicitly) will automatically notice that we have an
alias, and will replace the name "file" with the existing index
capitalization (ie "File").
However, if we actually have *both* a file called "File" and one called
"file", and they don't have the same lstat() information (ie we're on a
case-sensitive filesystem but have the "core.ignorecase" flag set), we
will error out if we try to add them both.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-sha1.sh')
0 files changed, 0 insertions, 0 deletions