summaryrefslogtreecommitdiff
path: root/builtin/mv.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-03-06 22:54:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-06 22:54:00 (GMT)
commita4ae2e5a1c45890f5eeccb2d1989a15c07f99e3d (patch)
treefc464f383288f3bfdc78d1bb74dd4221a0c37323 /builtin/mv.c
parent05d290e1dbd2ed424cd3c872c5b20390100fa5f7 (diff)
parent4cbe92fd41567e48ca60f4c810479b63ba8421fd (diff)
downloadgit-a4ae2e5a1c45890f5eeccb2d1989a15c07f99e3d.zip
git-a4ae2e5a1c45890f5eeccb2d1989a15c07f99e3d.tar.gz
git-a4ae2e5a1c45890f5eeccb2d1989a15c07f99e3d.tar.bz2
Merge branch 'sm/mv-dry-run-update'
Code clean-up. * sm/mv-dry-run-update: mv: remove unneeded 'if (!show_only)' t7001: add test case for --dry-run
Diffstat (limited to 'builtin/mv.c')
-rw-r--r--builtin/mv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/mv.c b/builtin/mv.c
index cf3684d..8ce6a2d 100644
--- a/builtin/mv.c
+++ b/builtin/mv.c
@@ -286,8 +286,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)