Skip to content

Commit ce41720

Browse files
alexhenriegitster
authored andcommitted
blame, log: format usage strings similarly to those in documentation
Earlier, 9c9b4f2 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bb831db commit ce41720

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/blame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "line-range.h"
2828
#include "line-log.h"
2929

30-
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] file");
30+
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
3131

3232
static const char *blame_opt_usage[] = {
3333
blame_usage,

builtin/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static const char *fmt_patch_subject_prefix = "PATCH";
3838
static const char *fmt_pretty;
3939

4040
static const char * const builtin_log_usage[] = {
41-
N_("git log [<options>] [<revision range>] [[--] <path>...]"),
41+
N_("git log [<options>] [<revision-range>] [[--] <path>...]"),
4242
N_("git show [<options>] <object>..."),
4343
NULL
4444
};

0 commit comments

Comments
 (0)