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

Re: git-p4 workflow suggestions?

From
Christian Couder <chriscool@tuxfamily.org>
Date
Mar 11, 2009, 07:03 UTC
Message-ID
<200903110803.12736.chriscool@tuxfamily.org>
In-Reply-To
<20090310095729.GA27280@zoy.org>
Le mardi 10 mars 2009, Sam Hocevar a écrit :
Show 16 quoted lines
> On Tue, Mar 10, 2009, Christian Couder wrote:
> > >    I have modified git and git-p4 to a point where they are usable in
> > > my work environment. I am now faced with a new problem: Perforce's
> > > composite workspaces. They allow you to "mount" parts of the repo
> > > onto other directories, even nonempty ones.
> >
> > It looks like SVN externals. So I think you should read about "git
> > submodule".
> >
> > There is this related link on the wiki:
> >
> > http://blog.alieniloquent.com/2008/03/08/git-svn-with-svnexternals/
>
>    Unfortunately submodules are considered separate repositories, so if
> I have /include and /src as submodules, I cannot commit atomically to
> both. Or can I? That's probably my strongest requirement.

I thought that you can commit in /include then in /src and then in the supermodule. This way you should have an atomic commit in the supermodule with both changes. But I don't know much about submodules.

Show 7 quoted lines
> > You may also want to search the mailing list as this subject has often
> > been discussed.
>
>    I did skim through the archives, but couldn't find much. There was
> this discussion: http://kerneltrap.org/mailarchive/git/2006/11/28/231515
> where the idea of Perforce-like workspaces was apparently dismissed as
> being "a mess".

Perhaps. Anyway I think there are patches about submodules quite often on the list and it seems a hot topic as there is an entry on the GSoC2009 idea page:

http://git.or.cz/gitwiki/SoC2009Ideas

On this page you may also be interested by the "Narrow and Sparse clone support" idea.

Best regards, Christian.

PS: it would be nice to put me in the CC header of your emails when you 
reply to me.
Previous: Sam HocevarNext: Pete Wyckoff
Message 4 of 8 in “git-p4 workflow suggestions?”
  1. Sam HocevarMar 9, 2009
  2. Christian CouderMar 10, 2009
  3. Sam HocevarMar 10, 2009
  4. Christian CouderMar 11, 2009
  5. Pete WyckoffMar 11, 2009
  6. Sam HocevarMar 16, 2009
  7. Pete WyckoffMar 17, 2009
  8. Sam HocevarMar 20, 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.