* Junio C Hamano [2018-02-07T11:49:39-0800]:
> Stefan Moch writes:
>
> > * Jonathan Nieder [2017-12-15T17:31:30-0800]:
> >> This sounds like a reasonable thing to add. See builtin/mv.c for
> >> how "git mv" works if you're looking for inspiration
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
---
builtin/mv.c | 3 +--
1 file changed, 1 insertion
It checks if mv --dry-run does not move file.
Signed-off-by: Stefan Moch
---
t/t7001-mv.sh | 6 ++
1 file changed, 6 insertions(+)
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh
index 6e5031f56..d4e6485a2 100755
--- a/t/t7001-mv.sh
+++ b/t/t7001-mv.sh
@@ -38,6 +38,12 @@ test_expect_success
* Jonathan Nieder [2017-12-15T17:31:30-0800]:
> This sounds like a reasonable thing to add. See builtin/mv.c for how
> "git mv" works if you're looking for inspiration.
>
> cmd_mv in that file looks rather long, so I'd also be happy if someone
> interested refactors to break it into multiple sel
4 matches
Mail list logo