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 <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jean-Noël Avila committed
Apr 12, 2025 at 12:20 UTC
8d34d3379f2946a4a2fc95802a39ea3be8a55e71
2 files changed
+4
-5
Documentation/git-mv.adoc
+2
-4
@@ -9,15 +9,13 @@ git-mv - Move or rename a file, a directory, or a symlink
9
SYNOPSIS
10
--------
11
[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>
14
15
DESCRIPTION
16
-----------
17
Move or rename a file, directory, or symlink.
18
18
- git mv [-v] [-f] [-n] [-k] <source> <destination>
19
- git mv [-v] [-f] [-n] [-k] <source> ... <destination-directory>
20
-
19
In the first form, it renames <source>, which must exist and be either
20
a file, symlink or directory, to <destination>.
21
In the second form, the last argument has to be an existing
builtin/mv.c
+2
-1
@@ -28,7 +28,8 @@
28
#include "entry.h"
29
30
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>"),
33
NULL
34
};
35