git/branch: somewhere in the syncing, the fix for junk files was lost

bring it back.
This commit is contained in:
Ori Bernstein 2021-06-06 09:11:10 -04:00
parent a2a0717c99
commit 78d2064a7c

View file

@ -74,8 +74,11 @@ if(! ~ $#dirtypaths 0){
y=$nl^$dirtypaths y=$nl^$dirtypaths
cleanpaths=`$nl{echo $"x$nl$"y | sort | uniq -u} cleanpaths=`$nl{echo $"x$nl$"y | sort | uniq -u}
} }
# creating the dirs with a single
# batch mkdir was significantly faster.
if(! ~ $#cleanpaths 0) 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){ if(! ~ $#cleandirs 0){
mkdir -p $cleandirs mkdir -p $cleandirs
mkdir -p .git/index9/tracked/$cleandirs mkdir -p .git/index9/tracked/$cleandirs