git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Branch deletion (Re: [RFC] fast-import: note deletion command)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Sep 18, 2011, 21:18 UTC
Message-ID
<20110918211836.GI2308@elie>
In-Reply-To
<CAGdFq_hpA95Kj4eMr4e1duuXTpr+OkkwF4K5bTapXEi9UjWcSA@mail.gmail.com>
Sverre Rabbelier wrote:
> Is this perhaps a good moment to also think about branch deletion?
> That came up earlier as well, and thinking about that might give us
> some insights in how to deal with deletions uniformly.

Sorry, my earlier reply missed the point. To answer your question: Dmitry's RFC was about deleting individual notes rather than entire notes refs, so it is not too closely related to branch deletion.

A new "deleteref" command would be a very simple addition, and the UI seems pretty obvious. The main concern in adding such a thing is that it destroys history, while currently "git fast-import" without -f does not provide any commands that can do that. So presumably one would want to do one of the following:

 - only allow deletion of refs that were not present at the start of
   the import, or
 - add a command-line option to permit deletion of refs, so it doesn't
   happen by mistake when misparsing a stream.

It would also be interesting to see an example use (do you remember the earlier thread where it came up?) to make sure the UI fits it well. In most typical cases I can imagine, direct use of "git update-ref -d" would work better. 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.

Previous: Jonathan NiederNext: Sverre Rabbelier
Message 6 of 10 in “[RFC] fast-import: note deletion command”
  1. Dmitry IvankovSep 18, 2011
  2. Jonathan NiederSep 18, 2011
  3. Sverre RabbelierSep 18, 2011
  4. Dmitry IvankovSep 18, 2011
  5. fast-import wishlist (Re: [RFC] fast-import: note deletion command)Jonathan Nieder, Sep 18, 2011
  6. Branch deletion (Re: [RFC] fast-import: note deletion command)Jonathan Nieder, Sep 18, 2011
  7. Sverre RabbelierSep 18, 2011
  8. Jonathan NiederSep 18, 2011
  9. Dmitry IvankovSep 18, 2011
  10. Sverre RabbelierSep 18, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.