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

Re: git-subtree: directory mismatch

From
Avery Pennarun <apenwarr@gmail.com>
Date
Nov 25, 2009, 18:28 UTC
Message-ID
<32541b130911251028h6db240d5yd171fa4941ef14ba@mail.gmail.com>
In-Reply-To
<20091125080812.6117@nanako3.lavabit.com>
On Tue, Nov 24, 2009 at 6:08 PM, Nanako Shiraishi <nanako3@lavabit.com> wrote:
Show 10 quoted lines
> Quoting Avery Pennarun <apenwarr@gmail.com>
>
>> Yup.  This is basically a bug in "git merge -s subtree": it guesses
>> which subtree to merge into, rather than actually taking a prefix
>> parameter.  I've been meaning to either submit a patch for this, or
>> find a way to work around it.
>
> Probably you can save time by using what was already done
>
> http://thread.gmane.org/gmane.comp.version-control.git/76650/focus=89021
Hi Nanako,

I've read through the thread (I do remember skimming it awhile ago) but can't find patches for the syntax actually under discussion. I found a patch that introduces "-s theirs", which was summarily shot down in favour of adding -X support, but I can't find any actual patch for this. Moreover, git-merge seems to have been ported to C since then, so I guess it wouldn't apply anyway. And I can't find any implementation at all for the discussed "-Xsubtree=" option, which I'm guessing didn't actually ever get done.

Am I missing something? It looks fairly easy to throw in anyway, but it's even easier if someone has already done it :)

Thanks,
Avery
Previous: Nanako ShiraishiNext: Junio C Hamano
Message 4 of 12 in “git-subtree: directory mismatch”
  1. Marc FournierNov 24, 2009
  2. Avery PennarunNov 24, 2009
  3. Nanako ShiraishiNov 24, 2009
  4. Avery PennarunNov 25, 2009
  5. Junio C HamanoNov 25, 2009
  6. Avery PennarunNov 25, 2009
  7. Junio C HamanoNov 25, 2009
  8. Johannes SchindelinNov 25, 2009
  9. Avery PennarunNov 25, 2009
  10. Björn SteinbrinkNov 25, 2009
  11. Avery PennarunNov 25, 2009
  12. Marc FournierNov 25, 2009

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.