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

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

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Sep 18, 2011, 21:55 UTC
Message-ID
<CAGdFq_gCVBi1JOsyM=+SVU6HFew_7yaJWaZ-3=AnmDeRkBxntQ@mail.gmail.com>
In-Reply-To
<20110918214954.GL2308@elie>
Heya,
On Sun, Sep 18, 2011 at 23:49, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 9 quoted lines
> 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?
We have a test case for this actually. It goes like this:
checking known breakage:
	(cd clone &&
	 git push origin new-name:new-refspec
	) &&
	compare_refs clone HEAD server refs/heads/new-refspec

Everything up-to-date fatal: Needed a single revision not ok 16 - push new branch with old:new refspec # TODO known breakage

In other words, we don't handle it at all. What we do handle a case similar to what you say, where we have already pushed part of the history of some-branch, and in that case we do indeed only push the needed objects.

-- 
Cheers,

Sverre Rabbelier
Previous: Dmitry Ivankov
Message 10 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.