]> git.lizzy.rs Git - plan9front.git/commitdiff
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)
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

index 145e6255111fd0e1fe265155332b72a3184d465f..1c062b96fc9172e86d762560494e55656f67f4cc 100755 (executable)
@@ -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 '