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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user