mv: remove unneeded 'if (!show_only)'

Commit a127331cd (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: Stefan Moch <stefanmoch@mail.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Moch committed Dec 31, 2017 at 20:11 UTC 4cbe92fd41567e48ca60f4c810479b63ba8421fd
1 file changed +1 -2
builtin/mv.c
+1 -2
@@ -287,8 +287,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
287
288 pos = cache_name_pos(src, strlen(src));
289 assert(pos >= 0);
290 - if (!show_only)
291 - rename_cache_entry_at(pos, dst);
290 + rename_cache_entry_at(pos, dst);
291 }
292
293 if (gitmodules_modified)