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

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

From
Dmitry Ivankov <divanorama@gmail.com>
Date
Sep 18, 2011, 21:54 UTC
Message-ID
<CA+gfSn_e3yY9eQ6O1zMdTituZMAv+a0AtF4cKrEOvBwY63pihA@mail.gmail.com>
In-Reply-To
<20110918214954.GL2308@elie>
On Mon, Sep 19, 2011 at 3:49 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 16 quoted lines
> 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.
     feature force
     reset refs/heads/experimental-branch
Will be close. It'll overwrite the branch if any commits are done to
it. But will
keep it as is in case it's not touched in the rest of the fast-import stream.
Show 13 quoted lines
> 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?
>
Previous: Jonathan NiederNext: Sverre Rabbelier
Message 9 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.