Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: adding arbitary folders to the git index, from outside of the repository

From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:46:41

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help