code: plan9front

Download patch

ref: 7010ad85c5a5648ea86d4f17a6b1547c10823938
parent: e934530ee4512f033952e4efa80a80058607b741
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jul 4 16:18:37 EDT 2021

git/export: make output pipable to /bin/mail

git/export *almost* produces output that can be
emailed with upas using

	git/export $commit | mail maintainer@site.com

but, the

	From: commit-id date

line that git generates trips it up. Luckily,
'git am' doesn't seem to care much if that line
is missing, so we can simply omit it with no issue.

--- a/sys/src/cmd/git/export
+++ b/sys/src/cmd/git/export
@@ -41,7 +41,6 @@
 		if(test -d $cp/tree)
 			bind $cp/tree b
 		
-		echo From $c
 		echo From: `{cat $cp/author}
 		echo Date: `{date -um `{mtime $cp/author | awk '{print $1}'}}
 		<$cp/msg awk '