author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 16 Aug 2006 08:44:02 +0000 (10:44 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 16 Aug 2006 20:19:06 +0000 (13:19 -0700) | ||
commit | d78b0f3d6aa04510dd0c22c3853d3954c5f5b531 | |
tree | 618b9af0d000d177ba1d1bdadd063a41ee429b82 | tree | snapshot |
parent | 53e1a761be8d338cd957870bc1e48a8c15d7d2c0 | commit | diff |
[PATCH] git-mv: add more path normalization
We already use the normalization from get_pathspec(), but now we also
remove a trailing slash. So,
git mv some_path/ into_some_path/
works now.
Also, move the "can not move directory into itself" test before the
subdirectory expansion.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
We already use the normalization from get_pathspec(), but now we also
remove a trailing slash. So,
git mv some_path/ into_some_path/
works now.
Also, move the "can not move directory into itself" test before the
subdirectory expansion.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-mv.c | diff | blob | history |