From: Christian Couder Date: Mon, 13 Jul 2026 12:41:53 +0000 (+0200) Subject: fast-export: standardize usage string and SYNOPSIS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9a7080755d54e9fc2397201cde7a6f5028e09ca;p=thirdparty%2Fgit.git fast-export: standardize usage string and SYNOPSIS The output of `git fast-export -h` currently starts with: usage: git fast-export [] while the SYNOPSIS section in this command's documentation shows: 'git fast-export' [] | 'git fast-import' Let's make both of these consistent with each other and with other Git commands by describing the arguments with: [] [] [[--] ...] This takes into account the following: - `git fast-export` accepts both rev-list arguments and a number of genuine options of its own (--[no-]progress, --[no-]signed-tags, --[no-]signed-commits, etc). - `git fast-export` was the only command using `[]` while many other commands describe their revision arguments as `[] [[--] ...]`. - In the DESCRIPTION section of the documentation, it's already mentioned several times that the output should eventually be fed to `git fast-import`. This also enables us to remove fast-export from "t/t0450/adoc-help-mismatches". Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-fast-export.adoc b/Documentation/git-fast-export.adoc index 297b57bb2e..719aeca244 100644 --- a/Documentation/git-fast-export.adoc +++ b/Documentation/git-fast-export.adoc @@ -9,7 +9,7 @@ git-fast-export - Git data exporter SYNOPSIS -------- [verse] -'git fast-export' [] | 'git fast-import' +'git fast-export' [] [] [[--] ...] DESCRIPTION ----------- diff --git a/builtin/fast-export.c b/builtin/fast-export.c index 0be43104dc..629d7c591a 100644 --- a/builtin/fast-export.c +++ b/builtin/fast-export.c @@ -33,7 +33,7 @@ #include "gpg-interface.h" static const char *const fast_export_usage[] = { - N_("git fast-export []"), + N_("git fast-export [] [] [[--] ...]"), NULL }; diff --git a/t/t0450/adoc-help-mismatches b/t/t0450/adoc-help-mismatches index e8d6c13ccd..c4a55ff4e3 100644 --- a/t/t0450/adoc-help-mismatches +++ b/t/t0450/adoc-help-mismatches @@ -12,7 +12,6 @@ column credential credential-cache credential-store -fast-export fast-import fetch-pack fmt-merge-msg