]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
git add: respect core.filemode with unmerged entries
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 29 Jun 2007 17:32:46 +0000 (18:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Jul 2007 20:26:05 +0000 (13:26 -0700)
commit20314271679e169f324c118c69c8d9e0399feec9
tree768123d50c0cd78bfaf9eaa743e5ed557cade82c
parenta44c4267090366c81303b964ab64f3d51b78f885
git add: respect core.filemode with unmerged entries

When a merge left unmerged entries, git add failed to pick up the
file mode from the index, when core.filemode == 0. If more than one
unmerged entry is there, the order of stage preference is 2, 1, 3.

Noticed by Johannes Sixt.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c
t/t3700-add.sh