git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
ABAndrew Bush <andrew@patchprint.co.nz>
Date
Apr 28, 2009, 22:54 UTC
Message-ID
<8ABE87D6-F70D-4A86-8307-88B95FAF350F@patchprint.co.nz>
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
Next: Robin Rosenberg
Message 1 of 3 in “adding arbitary folders to the git index, from outside of the repository”
  1. Andrew BushApr 28, 2009
  2. Robin RosenbergApr 29, 2009
  3. Mike RalphsonApr 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.