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

Re: how to filter a pull

From
MZmarc zonzon <marc.zonzon@gmail.com>
Date
May 4, 2007, 13:13 UTC
Message-ID
<71295b5a0705040613m74215667w72db82e0bc2c1a58@mail.gmail.com>
In-Reply-To
<20070504101329.GA16446@diana.vm.bytemark.co.uk>
On 5/4/07, Karl Hasselström <kha@treskal.com> wrote:
Show 7 quoted lines
> It should be straightforward (and efficient) to make a script that
> takes an existing branch and makes a parallel branch that contains
> only one subtree of the first branch. This derived branch can then be
> used as a subproject or whatever.
>
> Or is there some obvious reason why this wouldn't work, or would be
> inconvenient?

This was my initial idea, pull and filter!, but of course it is somewhat a hack, you pull inside git, and filter outside git, I don't know how to keep history, it seems that once filtered the origin of the subtree is lost. But I lack of git proficiency, I have no experience wich git core and mainly have used it at the user 'porcelain' level. I have had some hope that there is some mean to forward the internal state recording of the database state. The solution proposed by alex does not seem to be an option, if you draw from many projects, you cannot host the whole trees because some nodes are duplicates, and if they are outside your field you don't bother of merging them. Moreover I don't know how you mark what belongs to your small project island, among this big ocean.

So if I have no further advice I think the wiser is to try the raw script option, at least for the next 6 months the time to git, and my own proficiency to ripen..

Marc
Previous: Karl Hasselström
Message 7 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.