Re: Branch deletion (Re: [RFC] fast-import: note deletion command)
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Sep 18, 2011, 21:49 UTC
- Message-ID
- <20110918214954.GL2308@elie>
- In-Reply-To
- <CAGdFq_gH=u1BU6k3Z23Lo9mOSE4Rq-6nWU0EE91CQNpxksGw5w@mail.gmail.com>
Sverre Rabbelier wrote:
> The problem currently is that when > you try to "git push origin :experimental-branch", there is no way for > the transport-helper code to tell the helper to delete the ref.
Ah! Thanks for explaining.
It also occurs to me that
reset refs/heads/experimental-branch
... rest of the fast-import stream comes here ...
could be used as an especially non-self-explanatory way to express this kind of thing. :) No idea whether that works already. A deleteref command and deleteref feature documented to be meant for this purpose sound handy to me.
By the way, what does the "export" command do in the following situation?
git push origin something-big:master
Does it assume the remote-tracking branch for master reflects what's available on the other end and send a stream for origin/master..something-big, or does it send the entire history of something-big?