From 7010ad85c5a5648ea86d4f17a6b1547c10823938 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 4 Jul 2021 20:18:37 +0000 Subject: [PATCH] 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. --- sys/src/cmd/git/export | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/src/cmd/git/export b/sys/src/cmd/git/export index 145e62551..1c062b96f 100755 --- a/sys/src/cmd/git/export +++ b/sys/src/cmd/git/export @@ -41,7 +41,6 @@ for(c in $commits){ 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 ' -- 2.44.0