]> git.lizzy.rs Git - plan9front.git/commit
git/export: make output pipable to /bin/mail
authorOri Bernstein <ori@eigenstate.org>
Sun, 4 Jul 2021 20:18:37 +0000 (20:18 +0000)
committerOri Bernstein <ori@eigenstate.org>
Sun, 4 Jul 2021 20:18:37 +0000 (20:18 +0000)
commit7010ad85c5a5648ea86d4f17a6b1547c10823938
tree48df5435a895fef378e669513e31f32542c2146f
parente934530ee4512f033952e4efa80a80058607b741
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