From: Jean-Noël Avila Date: Sat, 12 Apr 2025 12:20:47 +0000 (+0000) Subject: doc: move synopsis git-mv commands in the synopsis section X-Git-Tag: v2.50.0-rc0~89^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d34d3379f2946a4a2fc95802a39ea3be8a55e71;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-mv.adoc b/Documentation/git-mv.adoc index dc1bf61534..08d660643f 100644 --- a/Documentation/git-mv.adoc +++ b/Documentation/git-mv.adoc @@ -9,15 +9,13 @@ git-mv - Move or rename a file, a directory, or a symlink SYNOPSIS -------- [verse] -'git mv' [] ... +'git mv' [-v] [-f] [-n] [-k] +'git mv' [-v] [-f] [-n] [-k] ... DESCRIPTION ----------- Move or rename a file, directory, or symlink. - git mv [-v] [-f] [-n] [-k] - git mv [-v] [-f] [-n] [-k] ... - In the first form, it renames , which must exist and be either a file, symlink or directory, to . In the second form, the last argument has to be an existing diff --git a/builtin/mv.c b/builtin/mv.c index 55a7d471dc..9e36b616ab 100644 --- a/builtin/mv.c +++ b/builtin/mv.c @@ -28,7 +28,8 @@ #include "entry.h" static const char * const builtin_mv_usage[] = { - N_("git mv [] ... "), + N_("git mv [-v] [-f] [-n] [-k] "), + N_("git mv [-v] [-f] [-n] [-k] ... "), NULL };