Skip to content

Commit 3e35d14

Browse files
committed
Merge branch 'jb/reflog-expire-delete-dry-run-options' into next
Command line parsing fix for "git reflog". * jb/reflog-expire-delete-dry-run-options: builtin/reflog.c: fix dry-run option short name
2 parents d05ea60 + cbf498e commit 3e35d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/reflog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static int cmd_reflog_expire(int argc, const char **argv, const char *prefix)
248248
int verbose = 0;
249249
reflog_expiry_should_prune_fn *should_prune_fn = should_expire_reflog_ent;
250250
const struct option options[] = {
251-
OPT_BIT(0, "dry-run", &flags, N_("do not actually prune any entries"),
251+
OPT_BIT('n', "dry-run", &flags, N_("do not actually prune any entries"),
252252
EXPIRE_REFLOGS_DRY_RUN),
253253
OPT_BIT(0, "rewrite", &flags,
254254
N_("rewrite the old SHA1 with the new SHA1 of the entry that now precedes it"),
@@ -368,7 +368,7 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix)
368368
int verbose = 0;
369369

370370
const struct option options[] = {
371-
OPT_BIT(0, "dry-run", &flags, N_("do not actually prune any entries"),
371+
OPT_BIT('n', "dry-run", &flags, N_("do not actually prune any entries"),
372372
EXPIRE_REFLOGS_DRY_RUN),
373373
OPT_BIT(0, "rewrite", &flags,
374374
N_("rewrite the old SHA1 with the new SHA1 of the entry that now precedes it"),

0 commit comments

Comments
 (0)