diff options
author | Patrick Steinhardt <ps@pks.im> | 2015-12-14 16:23:04 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-16 12:30:10 -0800 |
commit | 38a2559113d62b0f67ed968db9ca82330b702a9c (patch) | |
tree | 3c7eafa154c691cced98170c9b61436ad48b0304 /builtin/push.c | |
parent | fff69f7053b175be5963b08f802e0e03dccd696a (diff) | |
download | git-38a2559113d62b0f67ed968db9ca82330b702a9c.tar.gz |
push: add '-d' as shorthand for '--delete'ps/push-delete-option
"git push" takes "--delete" but does not take a short form "-d",
unlike "git branch" which does take both. Bring consistency
between them.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/push.c')
-rw-r--r-- | builtin/push.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/push.c b/builtin/push.c index 3bda430b6b..093011dcf0 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -540,7 +540,7 @@ int cmd_push(int argc, const char **argv, const char *prefix) OPT_BIT( 0 , "all", &flags, N_("push all refs"), TRANSPORT_PUSH_ALL), OPT_BIT( 0 , "mirror", &flags, N_("mirror all refs"), (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)), - OPT_BOOL( 0, "delete", &deleterefs, N_("delete refs")), + OPT_BOOL('d', "delete", &deleterefs, N_("delete refs")), OPT_BOOL( 0 , "tags", &tags, N_("push tags (can't be used with --all or --mirror)")), OPT_BIT('n' , "dry-run", &flags, N_("dry run"), TRANSPORT_PUSH_DRY_RUN), OPT_BIT( 0, "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN), |