Skip to content
Snippets Groups Projects
Commit 4cbe92fd authored by Stefan Moch's avatar Stefan Moch Committed by Junio C Hamano
Browse files

mv: remove unneeded 'if (!show_only)'


Commit a127331c (mv: allow moving nested submodules,
2016-04-19), introduced

    if (show_only) continue;

in this for-loop before

    if (!show_only)

which became redundant, because it is now always true.

Signed-off-by: default avatarStefan Moch <stefanmoch@mail.de>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 36b78cd9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -287,8 +287,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
 
pos = cache_name_pos(src, strlen(src));
assert(pos >= 0);
if (!show_only)
rename_cache_entry_at(pos, dst);
rename_cache_entry_at(pos, dst);
}
 
if (gitmodules_modified)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment