ref: ad14e03dcd1057ed6000ffc10588960b0ee6f7df
parent: 0e4d5c17630becff8c04760ced804a5c780f23ff
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 '
--
⑨