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

Re: untracked symlinks are less precious than untracked files?

From
Johannes Sixt <j6t@kdbg.org>
Date
Feb 2, 2011, 22:24 UTC
Message-ID
<201102022324.22123.j6t@kdbg.org>
In-Reply-To
<7v7hdixkys.fsf@alter.siamese.dyndns.org>
On Mittwoch, 2. Februar 2011, Junio C Hamano wrote:
Show 8 quoted lines
> Johannes Sixt <j6t@kdbg.org> writes:
> > Is it by design that symlinks are less precious than files, or is it an
> > oversight?
>
> I don't recall making conscious distinction between symmlinks and regular
> files, so it is likely to be just a bug. Perhaps using stat() where
> lstat() should be used and mistaking an error return as missing, or
> something silly like that?

Hm, I don't think so. It seems to interact with the lstat_cache. When lstat reports a symlink, this result is cached; but if it is a regular file, it is not cached. I don't know, what the consequences are, though... I have to stop my investigations for tonight.

-- Hannes
Previous: Junio C HamanoNext: Johannes Sixt
Message 3 of 14 in “untracked symlinks are less precious than untracked files?”
  1. Johannes SixtFeb 2, 2011
  2. Junio C HamanoFeb 2, 2011
  3. Johannes SixtFeb 2, 2011
  4. Demonstrate breakage: checkout overwrites untracked symlink with directoryJohannes Sixt, Feb 5, 2011
  5. Clemens BuchacherFeb 5, 2011
  6. Junio C HamanoFeb 9, 2011
  7. Clemens BuchacherFeb 10, 2011
  8. do not overwrite untracked symlinksClemens Buchacher, Feb 20, 2011
  9. Junio C HamanoFeb 21, 2011
  10. Clemens BuchacherFeb 21, 2011
  11. Junio C HamanoFeb 22, 2011
  12. Clemens BuchacherFeb 22, 2011
  13. Junio C HamanoFeb 22, 2011
  14. Johannes SixtFeb 15, 2011

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.