Skip to content

Commit 26b9946

Browse files
rscharfegitster
authored andcommitted
history: fix short help for argument of --update-refs
"print" is not a valid argument for --update-refs. List both valid alternatives literally in the argh string, consistent with documentation and usage string. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 49e6a7c commit 26b9946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/history.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ static int cmd_history_reword(int argc,
437437
enum ref_action action = REF_ACTION_DEFAULT;
438438
int dry_run = 0;
439439
struct option options[] = {
440-
OPT_CALLBACK_F(0, "update-refs", &action, N_("<action>"),
441-
N_("control which refs should be updated (branches|head)"),
440+
OPT_CALLBACK_F(0, "update-refs", &action, "(branches|head)",
441+
N_("control which refs should be updated"),
442442
PARSE_OPT_NONEG, parse_ref_action),
443443
OPT_BOOL('n', "dry-run", &dry_run,
444444
N_("perform a dry-run without updating any refs")),
@@ -666,8 +666,8 @@ static int cmd_history_split(int argc,
666666
enum ref_action action = REF_ACTION_DEFAULT;
667667
int dry_run = 0;
668668
struct option options[] = {
669-
OPT_CALLBACK_F(0, "update-refs", &action, N_("<refs>"),
670-
N_("control ref update behavior (branches|head|print)"),
669+
OPT_CALLBACK_F(0, "update-refs", &action, "(branches|head)",
670+
N_("control ref update behavior"),
671671
PARSE_OPT_NONEG, parse_ref_action),
672672
OPT_BOOL('n', "dry-run", &dry_run,
673673
N_("perform a dry-run without updating any refs")),

0 commit comments

Comments
 (0)