Re: Branch deletion (Re: [RFC] fast-import: note deletion command)
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Sep 18, 2011, 21:38 UTC
- Message-ID
- <CAGdFq_gH=u1BU6k3Z23Lo9mOSE4Rq-6nWU0EE91CQNpxksGw5w@mail.gmail.com>
- In-Reply-To
- <20110918211836.GI2308@elie>
Heya,
On Sun, Sep 18, 2011 at 23:18, Jonathan Nieder <jrnieder@gmail.com> wrote:
> In the case of remote helpers, IIRC there was already a need for > the transport-helper to handle the final ref updates so "git fetch" > can write a nice notice about them to the console.
That book-keeping is trivial to do. 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. Something like 'deleteref' sounds sane I suppose, and I agree that there should be some sort of safety switch :). I think we need a new feature announcing that we require support for it, and then the importer can abort right away if the user doesn't want to have their refs deleted.
-- Cheers, Sverre Rabbelier