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

New git-subtree almost ready

From
greened@obbligato.org <greened@obbligato.org>
Date
Mar 21, 2012, 03:36 UTC
Message-ID
<87limu7hhi.fsf@smith.obbligato.org>

I've got the git-subtree merge in pretty good shape now. After being taught about TEST_DIRECTORY, I've been able to get rid of all of the test system changes and can run the git-subtree tests using the stock test infrastructure.

Before I can put the new tree up I need a little help. Since it's been a while since I posted the last version of the tree, I tried to update from upstream master. git-subtree is in a separate branch (it wqas applied as a subtree merge) so I did the usual switch-to-master-and-pull thing.

However, now I don't know how to rebase from master to the subtree branch. If I do a "git rebase master" then the subtree merge gets re-applied as if the files were placed in the root directory rather than in the target directory of the original subtree merge.

The problem is described pretty well here and the issue has been covered on the mailing list before:

http://groups.google.com/group/git-users/browse_thread/thread/d54bacd234d95639 http://comments.gmane.org/gmane.comp.version-control.git/191934

I can think of a few strategies to move forward.
1. Keep the git-subtree branch where it is.  Don't rebase and just push
   the branch to a public repository.  Make Junio do the hard work.  :)
2. Split the subtree merge, remove it from the git repository, rebase
   from master and then re-subtree-merge it.
3. Don't do a rebase, just do a regular merge from master.

Which of these would be best to integrate git-subtree into Junio's repository?

git-web guys, how did you handle this situation?
Thanks!
                           -David
Next: greened@obbligato.org
Message 1 of 3 in “New git-subtree almost ready”
  1. greened@obbligato.orgMar 21, 2012
  2. greened@obbligato.orgMar 24, 2012
  3. David AguilarMar 24, 2012

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.