shithub: git9

Download patch

ref: 87c0ea513b47a88f450912e63e689728f9213b5c
parent: cda9631838ad97427fdbd615a20bea806cb59915
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jun 6 09:25:53 EDT 2021

git/branch: revert optimization fully

it doesn't help *that* much, and confuses the code.

--- a/branch
+++ b/branch
@@ -75,16 +75,11 @@
 	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{for(p in $cleanpaths) basename -d $p | uniq -u}
-if(! ~ $#cleandirs 0){
-	mkdir -p $cleandirs
-	mkdir -p .git/index9/tracked/$cleandirs
-}
 echo $commit > .git/$new
 for(m in $cleanpaths){
+	d=`$nl{basename -d $m}
+	mkdir -p $d
+	mkdir -p .git/index9/tracked/$d
 	# Modifications can turn a file into
 	# a directory, or vice versa, so we
 	# need to delete and copy the files