Skip to content

Commit 7b9d1b9

Browse files
committed
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
2 parents ce7da1d + 38a2559 commit 7b9d1b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-push.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SYNOPSIS
1010
--------
1111
[verse]
1212
'git push' [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
13-
[--repo=<repository>] [-f | --force] [--prune] [-v | --verbose]
13+
[--repo=<repository>] [-f | --force] [-d | --delete] [--prune] [-v | --verbose]
1414
[-u | --set-upstream]
1515
[--[no-]signed|--sign=(true|false|if-asked)]
1616
[--force-with-lease[=<refname>[:<expect>]]]

builtin/push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
538538
OPT_BIT( 0 , "all", &flags, N_("push all refs"), TRANSPORT_PUSH_ALL),
539539
OPT_BIT( 0 , "mirror", &flags, N_("mirror all refs"),
540540
(TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)),
541-
OPT_BOOL( 0, "delete", &deleterefs, N_("delete refs")),
541+
OPT_BOOL('d', "delete", &deleterefs, N_("delete refs")),
542542
OPT_BOOL( 0 , "tags", &tags, N_("push tags (can't be used with --all or --mirror)")),
543543
OPT_BIT('n' , "dry-run", &flags, N_("dry run"), TRANSPORT_PUSH_DRY_RUN),
544544
OPT_BIT( 0, "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN),

0 commit comments

Comments
 (0)