From: Mike Ralphson <mike.ralphson@gmail.com>
To: Andrew Bush <andrew@patchprint.co.nz>,
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Cc: git@vger.kernel.org
Subject: Re: adding arbitary folders to the git index, from outside of the repository
Date: Wed, 29 Apr 2009 08:44:50 +0100 [thread overview]
Message-ID: <e2b179460904290044q2f55ff90x4a8f3b9cab18006b@mail.gmail.com> (raw)
In-Reply-To: <200904290206.31153.robin.rosenberg.lists@dewire.com>
2009/4/29 Robin Rosenberg <robin.rosenberg.lists@dewire.com>:
> onsdag 29 april 2009 00:54:54 skrev Andrew Bush:
>> I have a desire to have a single git repository that tracks the
>> content of an array of folders located in various places across my
>> file system.
> What I do sometimes is set GIT_DIR and then add paths relative to
> / and adding excludes for some paths. That way I can cover /etc and
> selected parts of /var and other interesting areas. You cannot
> however have different roots for your trees, unless you make
> the tree using e.g symbolic links to the different directories.
You can also support having different roots for your trees if you
commit them to distinct branches. You would need to remember which
root applies to each branch, but you could name the branches var, etc,
usr/local/etc, home/andrew etc.
Mike
prev parent reply other threads:[~2009-04-29 7:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 22:54 adding arbitary folders to the git index, from outside of the repository Andrew Bush
2009-04-29 0:06 ` Robin Rosenberg
2009-04-29 7:44 ` Mike Ralphson [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=e2b179460904290044q2f55ff90x4a8f3b9cab18006b@mail.gmail.com \
--to=mike.ralphson@gmail.com \
--cc=andrew@patchprint.co.nz \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg.lists@dewire.com \
/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).