Browse Source

blame, log: format usage strings similarly to those in documentation

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>
maint
Alex Henrie 10 years ago committed by Junio C Hamano
parent
commit
ce41720cad
  1. 2
      builtin/blame.c
  2. 2
      builtin/log.c

2
builtin/blame.c

@ -27,7 +27,7 @@ @@ -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,

2
builtin/log.c

@ -38,7 +38,7 @@ static const char *fmt_patch_subject_prefix = "PATCH"; @@ -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
};

Loading…
Cancel
Save