* adding arbitary folders to the git index, from outside of the repository
@ 2009-04-28 22:54 Andrew Bush
2009-04-29 0:06 ` Robin Rosenberg
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Bush @ 2009-04-28 22:54 UTC (permalink / raw)
To: git
Hi all,
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.
this doesn't *appear* to be supported in any way, I found some stuff
about using shortcuts but that was apparently removed in version 1.6
because of the problem of deciding when to follow them and when to
index them.
Ideally what I would like is a way to specify in the git config file
for a repository an arbitary list of folders that it should index,
instead of only having the choice of indexing the folder the
repository is stored in.
this *feels* like it might be possible with a little hacking,depending
on how git is designed, but before I plunge into the Cold Depths Of
Unknown Code I was wondering whether anyone else has any knowledge of
an existing git solution for this kind of problem, or maybe some
suggestions for where I should start looking in the code or how I
should approach it?
I am also interested in whether anyone else has an interest in this
feature?
thanks for any suggestions or insights at all.
- Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: adding arbitary folders to the git index, from outside of the repository
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
0 siblings, 1 reply; 3+ messages in thread
From: Robin Rosenberg @ 2009-04-29 0:06 UTC (permalink / raw)
To: Andrew Bush; +Cc: git
onsdag 29 april 2009 00:54:54 skrev Andrew Bush:
> Hi all,
>
> 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.
>
> this doesn't *appear* to be supported in any way, I found some stuff
> about using shortcuts but that was apparently removed in version 1.6
> because of the problem of deciding when to follow them and when to
> index them.
>
>
> Ideally what I would like is a way to specify in the git config file
> for a repository an arbitary list of folders that it should index,
> instead of only having the choice of indexing the folder the
> repository is stored in.
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.
-- robin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: adding arbitary folders to the git index, from outside of the repository
2009-04-29 0:06 ` Robin Rosenberg
@ 2009-04-29 7:44 ` Mike Ralphson
0 siblings, 0 replies; 3+ messages in thread
From: Mike Ralphson @ 2009-04-29 7:44 UTC (permalink / raw)
To: Andrew Bush, Robin Rosenberg; +Cc: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-29 7:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).