Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:09

"Alex Riesen" [off-list ref] writes:
On 5/11/07, Junio C Hamano [off-list ref] wrote:
quoted
@@ -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?
Yes it can, and probably doable.

This is called once per each path that disappears from the
result, relative to the current tree.  The number of calls to
this function is potentially quite large.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help