have index-pack create .keep file more carefully
commit9ca4a201eaf0c58dbc7184cb2d5ab01c48cb7447
authorNicolas Pitre <nico@cam.org>
Wed, 1 Nov 2006 22:06:24 +0000 (1 17:06 -0500)
committerJunio C Hamano <junkio@cox.net>
Fri, 3 Nov 2006 08:24:07 +0000 (3 00:24 -0800)
tree40d15a0009df42b91567ea938adb389ade0a61a0
parentda093d37506f034bfb14e6de26cce9c14b1a1216
have index-pack create .keep file more carefully

If by chance we receive a pack which content (list of objects) matches
another pack that we already have, and if that pack is marked with a
.keep file, then we should not overwrite it.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
index-pack.c