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

git-subtree.sh - regression introduced by da949cc55

From
MFMarc Fournier <marc.fournier@camptocamp.com>
Date
Feb 11, 2010, 13:08 UTC
Message-ID
<20100211130837.GA29916@lonquimay.wrk.lsn.camptocamp.com>
Hello,

Up to this commit, I was able to split out new trees out of sub-directories of my project.

I used this to create a subproject out of a directory, without necessarily knowing in advance that I could need the content of this directory in other projects.

Since da949cc55, older unrelated commits get prepended to the history.
This issue is quite easy to reproduce:
 1. choose a directory in your project which hasn't been added with
    "git subtree add". Let's say it's called my/directory/.
 2. "git subtree split --prefix=my/directory --branch the-new-tree"
 3. "git log --stat the-new-tree"
 4. notice the mess which happens at the first commit concerning
    my/directory/ and how it then includes random older commits which have
    nothing related to my/directory.

Jakub, I'm not sure I understand what this patch is supposed to fix. Could you provide an example ? Or a test case ?

Thanks ! Marc

Next: Jakub Suder
Message 1 of 5 in “git-subtree.sh - regression introduced by da949cc55”
  1. Marc FournierFeb 11, 2010
  2. Jakub SuderFeb 11, 2010
  3. Avery PennarunFeb 12, 2010
  4. Jakub SuderFeb 13, 2010
  5. Avery PennarunFeb 13, 2010

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.