Skip to content

Commit 6c9fbf4

Browse files
committed
Merge branch 'rs/history-short-help-fix'
Glitches in "git history -h" have been corrected. * rs/history-short-help-fix: history: fix short help for argument of --update-refs
2 parents f1743ad + 26b9946 commit 6c9fbf4

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)