Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
mv: remove unneeded 'if (!show_only)'
author
Stefan Moch
<stefanmoch@mail.de>
Sun, 31 Dec 2017 19:11:56 +0000
(20:11 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Feb 2018 19:43:51 +0000
(11:43 -0800)
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>
builtin/mv.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
36b78cd
)
diff --git
a/builtin/mv.c
b/builtin/mv.c
index dcf6736b5b4c53989ee1fb3c5240e04f5dbb337d..9662804d236fa388815e28e8014e105b6715fa60 100644
(file)
--- a/
builtin/mv.c
+++ b/
builtin/mv.c
@@
-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)