Skip to content

Commit 8d34d33

Browse files
jnavilagitster
authored andcommitted
doc: move synopsis git-mv commands in the synopsis section
This also entails changing the help output for the command to match the new synopsis. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be9819c commit 8d34d33

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Documentation/git-mv.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ git-mv - Move or rename a file, a directory, or a symlink
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git mv' [<options>] <source>... <destination>
12+
'git mv' [-v] [-f] [-n] [-k] <source> <destination>
13+
'git mv' [-v] [-f] [-n] [-k] <source> ... <destination-directory>
1314

1415
DESCRIPTION
1516
-----------
1617
Move or rename a file, directory, or symlink.
1718

18-
git mv [-v] [-f] [-n] [-k] <source> <destination>
19-
git mv [-v] [-f] [-n] [-k] <source> ... <destination-directory>
20-
2119
In the first form, it renames <source>, which must exist and be either
2220
a file, symlink or directory, to <destination>.
2321
In the second form, the last argument has to be an existing

builtin/mv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
#include "entry.h"
2929

3030
static const char * const builtin_mv_usage[] = {
31-
N_("git mv [<options>] <source>... <destination>"),
31+
N_("git mv [-v] [-f] [-n] [-k] <source> <destination>"),
32+
N_("git mv [-v] [-f] [-n] [-k] <source> ... <destination-directory>"),
3233
NULL
3334
};
3435

0 commit comments

Comments
 (0)