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

Re: "git add" and absolute paths

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 28, 2008, 13:08 UTC
Message-ID
<m33asi9jxp.fsf@localhost.localdomain>
In-Reply-To
<916BAC14-A5E4-4666-A29E-2CDF114DCD87@wincent.com>
Wincent Colaiuta <win@wincent.com> writes:
> I was somewhat surprised the other day to see that you can't pass
> absolute paths to "git add":
>
[cut] 
Show 5 quoted lines
> 
> I understand that you can't add arbitrary paths outside of your
> worktree, but if the absolute path specifies something _inside_ your
> worktree then it seems that this is either a bug or a "usability
> shortcoming" if you prefer to avoid the term "bug".

If I remember correctly this issue was discussed on git mailing list, and I guess there were even some patches implementing that, but I don't know what happened iwth them: freeze persiod, troubles with Cygwin (MS Windows), or what...

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Johannes SchindelinNext: Jeff King
Message 3 of 4 in “"git add" and absolute paths”
  1. Wincent ColaiutaJan 28, 2008
  2. Johannes SchindelinJan 28, 2008
  3. Jakub NarebskiJan 28, 2008
  4. Jeff KingJan 28, 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.