git: 9front

Download patch

ref: 70853564b4b6bb2053ee0aa8f57a2120fe29b42b
parent: 6a3167112b02cacbd30db77f5e184c9cedbb6220
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Oct 18 18:21:12 EDT 2025

git/branch: we want to edit the commit even when not staying

--- a/sys/src/cmd/git/branch
+++ b/sys/src/cmd/git/branch
@@ -128,10 +128,9 @@
 }
 if(~ $new */*)
 	mkdir -p .git/`{basename -d $new}
-if(! ~ $#stay 0){
-	echo $commit > .git/$new
+echo $commit > .git/$new
+if(! ~ $#stay 0)
 	exit
-}
 
 cat $idxchange >> .git/INDEX9
 echo ref: $new > .git/HEAD
--