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

Re: [EGIT PATCH] Support linked resources

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jul 26, 2008, 15:07 UTC
Message-ID
<200807261707.18299.robin.rosenberg.lists@dewire.com>
In-Reply-To
<5a27b7b0807232034t564e8d45l9f6e4bc6429cda60@mail.gmail.com>
torsdagen den 24 juli 2008 05.34.06 skrev Richie Vos:
Show 12 quoted lines
> I have a project that outputs to a linked directory (for example the
> project is in /projects/foo and the project outputs to /projects/bar).
> This was causing egit to throw a bunch of "file is not in working
> path" errors whenever I rebuilt the project or otherwise interacted
> with that linked directory. I tracked it down to GitIndex's add/remove
> being called on these files even though these files are not part of
> the actual index.
> 
> It seems like egit shouldn't be trying to interact with the index on
> these files, and after looking at it, I decided the best solution
> would be to realize in the RepositoryMapping that these files do not
> point to a repository.

I'd be inclined to prefer ignoring any non-plain resource, always. Linked resources are either absolute or relative to a variable. Other than that there is an analogy to symbolic links. Git manages the link, not its content (unless handled elsewhere). The link in this case is in the .project file and thus managed there.

EGit could still managed the resource, but not via the link, but rather at the place it is located, iff that happens to be in a project managed by Egit.

-- robin
Previous: Richie VosNext: Shawn O. Pearce
Message 2 of 3 in “Support linked resources”
  1. Support linked resourcesRichie Vos, Jul 24, 2008
  2. Robin RosenbergJul 26, 2008
  3. Shawn O. PearceJul 26, 2008

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.