author | Jan Krüger <jk@jk.gs> | |
Wed, 30 Dec 2009 19:57:42 +0000 (20:57 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 30 Dec 2009 22:01:55 +0000 (14:01 -0800) | ||
commit | f517f1f2e9c9e3abe0fde1b3c9a7bb20fdb5ba55 | |
tree | 40a2b31e66b097ed531dff0c401541fe45a8699d | tree | snapshot |
parent | 902f235378cb2b2f6dd5dd664b9630c95321f0ae | commit | diff |
builtin-push: add --delete as syntactic sugar for :foo
Refspecs without a source side have been reported as confusing by many.
As an alternative, this adds support for commands like:
git push origin --delete somebranch
git push origin --delete tag sometag
Specifically, --delete will prepend a colon to all colon-less refspecs
given on the command line, and will refuse to accept refspecs with
colons to prevent undue confusion.
Signed-off-by: Jan Krüger <jk@jk.gs>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Refspecs without a source side have been reported as confusing by many.
As an alternative, this adds support for commands like:
git push origin --delete somebranch
git push origin --delete tag sometag
Specifically, --delete will prepend a colon to all colon-less refspecs
given on the command line, and will refuse to accept refspecs with
colons to prevent undue confusion.
Signed-off-by: Jan Krüger <jk@jk.gs>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-push.txt | diff | blob | history | |
builtin-push.c | diff | blob | history | |
t/t5516-fetch-push.sh | diff | blob | history |