shithub: git9

Download patch

ref: fe54900b9cf8011886a920db6eac68d45e87f9bb
parent: 54274ac67ef413d6d1a452a55a3ea72ce7b4a9ef
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Dec 6 01:34:46 EST 2019

write qid on file addition (performance boost for bulk import)

--- a/add
+++ b/add
@@ -32,6 +32,7 @@
 	delpath=.git/index9/$del/$rel/$f
 	mkdir -p `{basename -d $addpath}
 	mkdir -p `{basename -d $delpath}
-	touch $addpath
+	if(!test -e $addpath)
+		walk -eq $f > $addpath
 	rm -f $delpath
 }