author | Petr Baudis <pasky@suse.cz> | |
Wed, 16 Jul 2008 19:11:08 +0000 (21:11 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 27 Jul 2008 22:05:19 +0000 (15:05 -0700) | ||
commit | f6c52fe4e871d1d07cb7d86692ccf8cc4de54579 | |
tree | 829aca4b06666c63444a2423be330612926f018c | tree | snapshot |
parent | a08c53a119999df5b76e405195fa6c5e7d4b689f | commit | diff |
git-mv: Remove dead code branch
The path list builder had a branch for the case the source is not in index, but
this can happen only if the source was a directory. However, in that case we
have already expanded the list to the directory contents and set mode
to WORKING_DIRECTORY, which is tested earlier.
The patch removes the superfluous branch and adds an assert() instead. git-mv
testsuite still passes.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The path list builder had a branch for the case the source is not in index, but
this can happen only if the source was a directory. However, in that case we
have already expanded the list to the directory contents and set mode
to WORKING_DIRECTORY, which is tested earlier.
The patch removes the superfluous branch and adds an assert() instead. git-mv
testsuite still passes.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mv.c | diff | blob | history |