diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2012-06-09 16:27:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-11 08:00:11 -0700 |
commit | 242f55f61252e610092e93f4b2daebba21cb8acf (patch) | |
tree | 05f8086bfab70dfd15e2d99fdc4d4d96c5b89c54 /t/t4012-diff-binary.sh | |
parent | Git 1.7.10.4 (diff) | |
download | tgif-242f55f61252e610092e93f4b2daebba21cb8acf.tar.xz |
update-index: allow overwriting existing submodule index entries
In commit e01105 Linus introduced gitlinks to update-index. He explains
that he thinks it is not the right thing to replace a gitlink with
something else.
That commit is from the very first beginnings of submodule support.
Since then we have gotten a lot closer to being able to remove a
submodule without losing its history. This check prevents such a use
case, so I think this assumption has changed.
Additionally in the git add codepath we do not have such a check, so for
consistency reasons I think removing this check is the correct thing to
do.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4012-diff-binary.sh')
0 files changed, 0 insertions, 0 deletions