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

Re: adding file by absolute name -- problem

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 23, 2007, 10:51 UTC
Message-ID
<Pine.LNX.4.64.0704231247480.8822@racer.site>
In-Reply-To
<f36b08ee0704230330if89d417udefb8e50062d5a05@mail.gmail.com>
Hi,
On Mon, 23 Apr 2007, Yakov Lerner wrote:
> CVS did not accept absolute pathnames, and SVN does. It is really convenient.

I do not feel very comfortable with the thought. If you have symbolic links somewhere along the path, it is easy to get wrong.

This line of thought got me confused: would

$ ln -s /tmp x $ touch x/y $ git add x/y

work?
*clicketyclick*

Yes, it does. It ignores the fact that x is not a directory, but a symbolic link. Lots of opportunities to shoot yourself in the foot.

Think about the consequences of doing something like this in one repository, where "x" points into another one...

Ciao, Dscho

Previous: Yakov LernerNext: Julian Phillips
Message 6 of 9 in “adding file by absolute name -- problem”
  1. Yakov LernerApr 23, 2007
  2. Junio C HamanoApr 23, 2007
  3. Johannes SchindelinApr 23, 2007
  4. Yakov LernerApr 23, 2007
  5. Yakov LernerApr 23, 2007
  6. Johannes SchindelinApr 23, 2007
  7. Julian PhillipsApr 23, 2007
  8. Carlos RicaApr 23, 2007
  9. Johannes SchindelinApr 23, 2007

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.