shithub: git9

Download patch

ref: 56e974515ed5be32ae80c4d2b0c7092c027a4196
parent: df100f742b2efd4dd84af63f811c555696da52d9
author: Michael Forney <[email protected]>
date: Sun Jan 31 21:55:28 EST 2021

git/export: print names of exported patches when using -o option

--- a/export
+++ b/export
@@ -77,8 +77,11 @@
 		cat $patchfile
 		! ~ $n $m && echo
 	}
-	if not
-		mv $patchfile $patchdir/`{cat $patchname}
+	if not{
+		f=$patchdir/`{cat $patchname}
+		mv $patchfile $f
+		echo $f
+	}
 	n=`{echo $n + 1 | bc}
 }
 exit ''