From: Sam Hocevar Date: Tue, 10 Mar 2009 09:57:29 GMT Subject: Re: git-p4 workflow suggestions? Message-ID: <20090310095729.GA27280@zoy.org> In-Reply-To: <200903100815.53847.chriscool@tuxfamily.org> 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. > 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". Cheers, -- Sam.