git/branch: explain why we do the mkdir dance git/branch: unrevert the fix to the cleanpath optimization. The cleanpath optimization was fixed, and somehow the fix got reverted. Bring it back.
4 files changed, 4 insertions(+), 1 deletions(-) M add -rw-r--r-- => -rwxr-xr-x M branch -rwxr-xr-x => -rw-r--r-- M commit -rw-r--r-- => -rwxr-xr-x M diff -rw-r--r-- => -rwxr-xr-x
M add => add +0 -0
M branch => branch +4 -1
@@ 74,8 74,11 @@ if(! ~ $#dirtypaths 0){ y=$nl^$dirtypaths cleanpaths=`$nl{echo $"x$nl$"y | sort | uniq -u} } # creating the dirs with a single # batch mkdir was significantly faster. if(! ~ $#cleanpaths 0) cleandirs=`$nl{echo $nl^$cleanpaths | sed 's@/[^/]+/?$@@' | uniq} cleandirs=`$nl{for(p in $cleanpaths) basename -d $p | uniq -u} if(! ~ $#cleandirs 0){ mkdir -p $cleandirs mkdir -p .git/index9/tracked/$cleandirs
M commit => commit +0 -0
M diff => diff +0 -0