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

Re: git-cvsimport gets parents wrong for branches

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 4, 2006, 11:33 UTC
Message-ID
<Pine.LNX.4.63.0607041330120.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20060704110313.GC24572@memak.tu-darmstadt.de>
Hi,
On Tue, 4 Jul 2006, Elrond wrote:
Show 16 quoted lines
> On Tue, Jul 04, 2006 at 10:09:18AM +0200, Johannes Schindelin wrote:
> > Hi,
> > 
> > On Tue, 4 Jul 2006, Martin Langhoff wrote:
> > 
> > > It is pretty hard to get that one right in any case, as there are
> > > cases where the new branch starts from something that is not a commit
> > > in the parent (from GIT's perspective).
> > 
> > But it should be easy to introduce a faked commit, which just contains 
> > those versions (and takes the newest commit touching any of these file 
> > versions as branch point).
> 
> [...]
>
> just which parent should our new fake commit have?

That is what I tried to address with the "branch point" thing. Just take the newest commit (in the ancestor line) touching the file versions of that particular tree, or in other words, the oldest commit having at least these file versions.

IMHO it is dumb enough not to branch off of a commit that it does not matter that much what parent this faked commit has.

Ciao, Dscho

Previous: ElrondNext: Elrond
Message 5 of 6 in “git-cvsimport gets parents wrong for branches”
  1. ElrondJul 3, 2006
  2. Martin LanghoffJul 3, 2006
  3. Johannes SchindelinJul 4, 2006
  4. ElrondJul 4, 2006
  5. Johannes SchindelinJul 4, 2006
  6. ElrondJul 4, 2006

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.