shithub: git9

Download patch

ref: f205736514bcfbbab5dc17a7db5d5a89b7961cc5
parent: abbb4f0afe86353d767254afce3ba691ee9f12db
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Dec 3 21:28:07 EST 2020

git/import: add flag to prevent committing after import

This will be useful for merging commits when amending or
rebasing.

--- a/import
+++ b/import
@@ -78,14 +78,16 @@
 				git/add -r $f
 		}
 		git/walk -fRMA $files
-		hash=`{git/save -n $name -e $email -m $msg -d $date $parents $files}
-		echo $hash > $refpath
+		if(~ $#nocommit 0){
+			hash=`{git/save -n $name -e $email -m $msg -d $date $parents $files}
+			echo $hash > $refpath
+		}
 	'
 }
 
 gitup
 
-flagfmt=''; args='file ...'
+flagfmt='n:nocommit'; args='file ...'
 eval `''{aux/getflags $*} || exec aux/usage
 
 patches=(/fd/0)