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

Re: [PATCH] read-tree -m -u: avoid getting confused by intermediate symlinks.

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 11, 2007, 14:08 UTC
Message-ID
<81b0412b0705110708y7e3a9024p9e117e2da84ae916@mail.gmail.com>
In-Reply-To
<7vveezde8b.fsf@assigned-by-dhcp.cox.net>
On 5/11/07, Junio C Hamano <junkio@cox.net> wrote:
Show 6 quoted lines
> @@ -268,6 +268,8 @@ static void unlink_entry(char *name)
>  {
>         char *cp, *prev;
>
> +       if (has_symlink_leading_path(name))
> +               return;

This can slow down the unlink case quiet considerably. Maybe the symlink paths can be cached?

Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 4 in “read-tree -m -u: avoid getting confused by intermediate symlinks.”
  1. read-tree -m -u: avoid getting confused by intermediate symlinks.Junio C Hamano, May 11, 2007
  2. Alex RiesenMay 11, 2007
  3. Junio C HamanoMay 11, 2007
  4. Junio C HamanoMay 11, 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.