summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Jean-Noël Avila <jn.avila@free.fr>2022-01-31 22:07:49 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-04 13:58:28 -0800
commit9164d97a63b31614a52571d708f1ef151b97db71 (patch)
tree24a032b50c4fa7afe11eaab7c1ae227bbe891c7a
parenti18n: remove from i18n strings that do not hold translatable parts (diff)
downloadtgif-9164d97a63b31614a52571d708f1ef151b97db71.tar.xz
i18n: fix some misformated placeholders in command synopsis
* add '<>' around arguments where missing * convert plurals into '...' forms This applies the style guide for documentation. Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Reviewed-by: Phillip Wood <phillip.wood123@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/fast-export.c2
-rw-r--r--builtin/reflog.c4
-rw-r--r--builtin/rev-list.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c
index 9f1c730e58..510139e9b5 100644
--- a/builtin/fast-export.c
+++ b/builtin/fast-export.c
@@ -26,7 +26,7 @@
#include "commit-slab.h"
static const char *fast_export_usage[] = {
- N_("git fast-export [rev-list-opts]"),
+ N_("git fast-export [<rev-list-opts>]"),
NULL
};
diff --git a/builtin/reflog.c b/builtin/reflog.c
index ee5ee8d8cf..343a10d371 100644
--- a/builtin/reflog.c
+++ b/builtin/reflog.c
@@ -17,10 +17,10 @@ static const char reflog_expire_usage[] =
N_("git reflog expire [--expire=<time>] "
"[--expire-unreachable=<time>] "
"[--rewrite] [--updateref] [--stale-fix] [--dry-run | -n] "
- "[--verbose] [--all] <refs>...");
+ "[--verbose] [--all] <ref>...");
static const char reflog_delete_usage[] =
N_("git reflog delete [--rewrite] [--updateref] "
- "[--dry-run | -n] [--verbose] <refs>...");
+ "[--dry-run | -n] [--verbose] <ref>...");
static const char reflog_exists_usage[] =
N_("git reflog exists <ref>");
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 777558e9b0..38528c7f15 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -20,7 +20,7 @@
#include "packfile.h"
static const char rev_list_usage[] =
-"git rev-list [OPTION] <commit-id>... [ -- paths... ]\n"
+"git rev-list [<options>] <commit-id>... [-- <path>...]\n"
" limiting output:\n"
" --max-count=<n>\n"
" --max-age=<epoch>\n"