summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-01-12 15:16:53 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-01-12 15:16:54 -0800
commit7b9d1b9556b31fe5f661caa1e82856ca876f2a08 (patch)
tree6e862974db7482ccc5d4b5ed28b5dc968acc703f /builtin
parentMerge branch 'ep/make-phoney' (diff)
parentpush: add '-d' as shorthand for '--delete' (diff)
downloadtgif-7b9d1b9556b31fe5f661caa1e82856ca876f2a08.tar.xz
Merge branch 'ps/push-delete-option'
"branch --delete" has "branch -d" but "push --delete" does not. * ps/push-delete-option: push: add '-d' as shorthand for '--delete' push: add '--delete' flag to synopsis
Diffstat (limited to 'builtin')
-rw-r--r--builtin/push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/push.c b/builtin/push.c
index 8963dbdf3d..960ffc31e1 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -538,7 +538,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),