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

Re: Feature Enhancement Idea.

From
DGDeon George <deon.george@gmail.com>
Date
Sep 24, 2009, 09:25 UTC
Message-ID
<5b5e291e0909240225q49a202abk7cf1a0c8f715ad5f@mail.gmail.com>
In-Reply-To
<m3bpl0c2cf.fsf@localhost.localdomain>
Jakub Narebski wrote:
> First, I assume there that you do not allow for the same file to
> belong to different repositories.

Well, no, I cant see why a file cannot belong to both repositories. I'm sure it would be easier if a file did belong to a unique repository, but given that GIT operates at a content layer (from what I've read anyway), I cant see why it couldnt belong to more than one.

> you can try either submodules
> (git-submodule), or subtree (subtree merge, or third-party git-subtree
> helper).

I had a quick look at submodule - I dont think it helps me anyway, since I want the flexibility for files to belong to many sub-directories - not all under 1 sub directory hierarchy.

> Third, if the above isn't what you want, then you can manually
> intermingle working directories of different git repositories
> (probably requiring decouplig of bare git repository (git-dir)
> from working area (work-tree)).

Ahh, now this sounds like it might be what I want to do - I think I'll explore this. I can see that it would provide file level autonomy only, but as a starting point I think it will help heaps...

I'll work on it as time permits and come up with some scripts to provide what I am after (need to learn more on the workings of GIT first - everyday I learn a new feature :)

Thanks for your idea...
...deon
Previous: Jakub NarebskiNext: Eric Raible
Message 10 of 11 in “Feature Enhancement Idea.”
  1. Deon GeorgeSep 23, 2009
  2. Christian CouderSep 23, 2009
  3. Johan HerlandSep 23, 2009
  4. Deon GeorgeSep 23, 2009
  5. Ciprian Dorin, CraciunSep 23, 2009
  6. Johan HerlandSep 23, 2009
  7. Junio C HamanoSep 23, 2009
  8. Deon GeorgeSep 24, 2009
  9. Jakub NarebskiSep 24, 2009
  10. Deon GeorgeSep 24, 2009
  11. Eric RaibleSep 24, 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.