Code

git-mv: succeed even if source is a prefix of destination
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 16 Aug 2006 00:20:32 +0000 (02:20 +0200)
committerJunio C Hamano <junkio@cox.net>
Wed, 16 Aug 2006 04:00:20 +0000 (21:00 -0700)
commit1d6249e609289940dca179b626fe4ae5433c90cc
tree030ff55edcc9723bac9c9b6f4e286f0d83bda377
parent66c4509b73eeb66de3196a43e3171b3764f74100
git-mv: succeed even if source is a prefix of destination

As noted by Fredrik Kuivinen, without this patch, git-mv fails on

git-mv README README-renamed

because "README" is a prefix of "README-renamed".

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-mv.c
t/t7001-mv.sh