ref: a17defd4f42910315259731bd7eb32b484b88e59
parent: 5c0216ed06354c898581647deed7a6e794f44d96
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 6 05:11:10 EDT 2021
git/branch: somewhere in the syncing, the fix for junk files was lost bring it back.
--- a/sys/src/cmd/git/branch
+++ b/sys/src/cmd/git/branch
@@ -74,8 +74,11 @@
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
--
⑨