{"thread":{"id":"19116","subject":"adding arbitary folders to the git index, from outside of the repository","startedAt":"2009-04-28T22:54:54Z","lastAt":"2009-04-29T07:44:50Z","messageCount":3,"participants":["Andrew Bush","Robin Rosenberg","Mike Ralphson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"112582","messageId":"8ABE87D6-F70D-4A86-8307-88B95FAF350F@patchprint.co.nz","threadId":"19116","inReplyTo":null,"subject":"adding arbitary folders to the git index, from outside of the repository","fromName":"Andrew Bush","fromEmail":"andrew@patchprint.co.nz","sentAt":"2009-04-28T22:54:54Z","receivedAt":"2009-04-28T22:54:54Z","isPatch":false,"sender":{"key":"andrew@patchprint.co.nz","avatar":null},"body":"Hi all,\n\nI have a desire to have a single git repository that tracks the  \ncontent of an array of folders located in various places across my  \nfile system.\n\nthis doesn't *appear* to be supported in any way, I found some stuff  \nabout using shortcuts but that was apparently removed in version 1.6  \nbecause of the problem of deciding when to follow them and when to  \nindex them.\n\n\nIdeally what I would like is a way to specify in the git config file  \nfor a repository an arbitary list of folders that it should index,  \ninstead of only having the choice of indexing the folder the  \nrepository is stored in.\n\n\nthis *feels* like it might be possible with a little hacking,depending  \non how git is designed, but before I plunge into the Cold Depths Of  \nUnknown Code I was wondering whether anyone else has any knowledge of  \nan existing git solution for this kind of problem, or maybe some  \nsuggestions for where I should start looking in the code or how I  \nshould approach it?\n\nI am also interested in whether anyone else has an interest in this  \nfeature?\n\nthanks for any suggestions or insights at all.\n\n\n- Andrew\n"},{"id":"112583","messageId":"200904290206.31153.robin.rosenberg.lists@dewire.com","threadId":"19116","inReplyTo":"8ABE87D6-F70D-4A86-8307-88B95FAF350F@patchprint.co.nz","subject":"Re: adding arbitary folders to the git index, from outside of the repository","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2009-04-29T00:06:30Z","receivedAt":"2009-04-29T00:06:30Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 29 april 2009 00:54:54 skrev Andrew Bush:\n> Hi all,\n> \n> I have a desire to have a single git repository that tracks the  \n> content of an array of folders located in various places across my  \n> file system.\n> \n> this doesn't *appear* to be supported in any way, I found some stuff  \n> about using shortcuts but that was apparently removed in version 1.6  \n> because of the problem of deciding when to follow them and when to  \n> index them.\n> \n> \n> Ideally what I would like is a way to specify in the git config file  \n> for a repository an arbitary list of folders that it should index,  \n> instead of only having the choice of indexing the folder the  \n> repository is stored in.\n\nWhat I do sometimes is set GIT_DIR and then add paths relative to\n/ and adding excludes for some paths. That way I can cover /etc and\nselected parts of /var and other interesting areas. You cannot\nhowever have different roots for your trees, unless you make\nthe tree using e.g symbolic links to the different directories.\n\n-- robin\n"},{"id":"112607","messageId":"e2b179460904290044q2f55ff90x4a8f3b9cab18006b@mail.gmail.com","threadId":"19116","inReplyTo":"200904290206.31153.robin.rosenberg.lists@dewire.com","subject":"Re: adding arbitary folders to the git index, from outside of the repository","fromName":"Mike Ralphson","fromEmail":"mike.ralphson@gmail.com","sentAt":"2009-04-29T07:44:50Z","receivedAt":"2009-04-29T07:44:50Z","isPatch":false,"sender":{"key":"mike.ralphson@gmail.com","avatar":"https://avatars.githubusercontent.com/u/21603?v=4"},"body":"2009/4/29 Robin Rosenberg <robin.rosenberg.lists@dewire.com>:\n> onsdag 29 april 2009 00:54:54 skrev Andrew Bush:\n>> I have a desire to have a single git repository that tracks the\n>> content of an array of folders located in various places across my\n>> file system.\n\n> What I do sometimes is set GIT_DIR and then add paths relative to\n> / and adding excludes for some paths. That way I can cover /etc and\n> selected parts of /var and other interesting areas. You cannot\n> however have different roots for your trees, unless you make\n> the tree using e.g symbolic links to the different directories.\n\nYou can also support having different roots for your trees if you\ncommit them to distinct branches. You would need to remember which\nroot applies to each branch, but you could name the branches var, etc,\nusr/local/etc, home/andrew etc.\n\nMike\n"}]}