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

Re: [PATCH] Teach filter-branch about subdirectory filtering

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 8, 2007, 13:03 UTC
Message-ID
<Pine.LNX.4.64.0706081358060.4059@racer.site>
In-Reply-To
<46690315.8244CAF7@eudaptics.com>
Hi,
On Fri, 8 Jun 2007, Johannes Sixt wrote:
Show 14 quoted lines
> Johannes Schindelin wrote:
> > It's just a guess, but now that we come really, really close to having 
> > a concise implementation of git-subproject which will probably soon 
> > propagate to master, and then maint, I gather that more and more 
> > people come and want to split their projects (which they maintained as 
> > one big project) into several subprojects (which they should have been 
> > from the start, but the tool did not easily allow for that).
> 
> I think that --subdirectry-filter needs to become a bit smarter to be 
> really useful for splitting a big project into sub-projects plus a 
> super-project. The reason is that once you have extracted the 
> sub-project(s), you have a hard time to find out which commits to 
> gitlink into the super-project. I don't have a plan how to make it 
> smarter, though.
Yes, it seems a good direction to follow.

I will have to think about it, but I guess that with yet another set of files in ../map/ (probably prefixed by the subdirectory name), we should even be able to smartly filter a huge project into a super-project together with its subprojects.

The command line option would be something like "--split-superproject dir1,dir2,dir3", where dir<n> are the subdirectories that are to become the subprojects.

Ciao, Dscho

Previous: Johannes SixtNext: Johannes Sixt
Message 5 of 7 in “Teach filter-branch about subdirectory filtering”
  1. Teach filter-branch about subdirectory filteringJohannes Schindelin, Jun 8, 2007
  2. Junio C HamanoJun 8, 2007
  3. Johannes SchindelinJun 8, 2007
  4. Johannes SixtJun 8, 2007
  5. Johannes SchindelinJun 8, 2007
  6. Johannes SixtJun 8, 2007
  7. Alex RiesenJun 8, 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.