Thread (9 messages) flat view 9 messages, 4 authors, 2016-06-15

Re: [PATCH RFC] builtin-push: add --delete as syntactic sugar for :foo

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:41

Possibly related (same subject, not in this thread)

Jan Krüger [off-list ref] writes:
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

Specifically, --delete will prepend a colon to all colon-less refspecs
given on the command line.
Will it barf and error out if there is any colon-ful one?  I think it
should.  I was about to write "I guess it could be argued both ways", but
after thinking about it for 5 seconds I do not see a sane way to explain a
command line "push origin --delete one two:three".

I agree with you that it wouldn't make sense to mix this with --all and
friends.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help