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

Re: how to filter a pull

From
Junio C Hamano <junkio@cox.net>
Date
May 3, 2007, 18:21 UTC
Message-ID
<7vwszpzs33.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070503150752.GB6500@xp.machine.xx>
Peter Baumann <waste.manager@gmx.de> writes:
> On Thu, May 03, 2007 at 03:17:05PM +0200, marc.zonzon@gmail.com wrote:
Show 8 quoted lines
>> I have projects that draw some parts from two or three other
>> projects. But it is usually some small part, that are included, and
>> patched in my project. I want to follow the development of these fellow
>> projects.
>> ...
> Perhaps the newly added merge strategy subtree [1] could work. Or the
> just added subproject support, but this is very new and only the lowlevel machinery
> is implemented right now.

I do not think subtree merge would work with this situation, as it is only for cases that one side of the merge represents a tree that is a subset of the tree of the other side of the merge. marc.zonzon's case does not fit the pattern.

If I were doing this 6 months from now, I would probably use subproject to host the whole tree of other projects somewhere, adjust the build procedure of the primary project to borrow the whole of these other projects not just subtree -- or have appropriate symlinks in the superproject that point into relevant subtrees in the subprojects.

If I were doing this today, I would probably use separate repositories, next to the primary project, to host the whole tree of other projects, adjust the build procedure of the primary project to borrow the whole of these other projects not just subtree -- and/or have appropriate symlinks in the primary project that point into relevant subtrees in the neighbouring repositories that host these other projects.

Previous: Peter BaumannNext: marc zonzon
Message 3 of 7 in “how to filter a pull”
  1. marc.zonzon@gmail.comMay 3, 2007
  2. Peter BaumannMay 3, 2007
  3. Junio C HamanoMay 3, 2007
  4. marc zonzonMay 3, 2007
  5. Alex RiesenMay 3, 2007
  6. Karl HasselströmMay 4, 2007
  7. marc zonzonMay 4, 2007

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.