From: Jens Lehmann <Jens.Lehmann@web.de>
To: sabrown256@gmail.com
Cc: "Stewart A. Brown" <sabrown256@sbcglobal.net>, git@vger.kernel.org
Subject: Re: Site dependent repositories
Date: Sun, 21 Aug 2011 18:14:30 +0200 [thread overview]
Message-ID: <4E512EE6.60900@web.de> (raw)
In-Reply-To: <4E507C05.2090700@sbcglobal.net>
Am 21.08.2011 05:31, schrieb Stewart A. Brown:
> I am wondering whether or not git has the functionality to handle
> my situation.
>
> I have git repositories at multiple sites. At each site the git repository
> has site dependent sources. Each repository is organised something
> like:
>
> top/a/local
> b
> c/d/extensions
> e
>
> The directories top, a, b, c, d, and e have sources that need to be
> pushed or pulled between the repositories at all sites. The directories
> 'local' and 'extensions' have sources that must be managed within sites
> but never pushed or pulled between sites.
>
> The ignore mechanism will not suffice because the files in 'local' and
> 'extensions' must be source managed. I have looked a bit into
> submodules, filters, and hooks. None of these jumps out as obvious, but
> they are rich mechanisms with plenty of subtleties.
>
> Does git have a way of letting me do this?
It would work if you could set it up like this:
top/shared
non-shared-stuff
where "top" is your git repository, "shared" is a submodule you put all the
non-site specific stuff in and have that version controlled together with
your local stuff. If you can't rearrange your directory tree you might be
able to use symlinks to achieve that layout:
top/a/local -> ../local
b
c/d/extensions -> ../../extensions
e
top/extension
top/local
where "a" is your shared submodule that lives together with "extensions" and
"local" in the top level repo.
prev parent reply other threads:[~2011-08-21 16:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-21 3:31 Site dependent repositories Stewart A. Brown
2011-08-21 4:21 ` Andrew Keller
2011-08-21 5:46 ` Evan Shelhamer
2011-08-21 16:14 ` Jens Lehmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E512EE6.60900@web.de \
--to=jens.lehmann@web.de \
--cc=git@vger.kernel.org \
--cc=sabrown256@gmail.com \
--cc=sabrown256@sbcglobal.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).