summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2015-04-02 15:26:56 -0600
committerJunio C Hamano <gitster@pobox.com>2015-05-03 16:55:26 -0700
commitce41720cad79d858f09ebfc88cf84a4b152645c7 (patch)
treec178c05d6eb8f2dd5e6dbc7713896242c3cb92dc /builtin
parentbb831db6774aaa733199360dc7af6f3ce375fc20 (diff)
downloadgit-ce41720cad79d858f09ebfc88cf84a4b152645c7.tar.gz
blame, log: format usage strings similarly to those in documentationah/usage-strings
Earlier, 9c9b4f2f (standardize usage info string format, 2015-01-13) tried to make usage-string in line with the documentation by - Placing angle brackets around fill-in-the-blank parameters - Putting dashes in multiword parameter names - Adding spaces to [-f|--foobar] to make [-f | --foobar] - Replacing <foobar>* with [<foobar>...] but it missed a few places. Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/blame.c2
-rw-r--r--builtin/log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index 44b0134ea2..5710dcbec6 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -27,7 +27,7 @@
#include "line-range.h"
#include "line-log.h"
-static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] file");
+static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
static const char *blame_opt_usage[] = {
blame_usage,
diff --git a/builtin/log.c b/builtin/log.c
index dd8f3fcfc4..4c4e6be28c 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -38,7 +38,7 @@ static const char *fmt_patch_subject_prefix = "PATCH";
static const char *fmt_pretty;
static const char * const builtin_log_usage[] = {
- N_("git log [<options>] [<revision range>] [[--] <path>...]"),
+ N_("git log [<options>] [<revision-range>] [[--] <path>...]"),
N_("git show [<options>] <object>..."),
NULL
};