gitblag

git push to your readers
git clone git://git.ricketyspace.net/gitblag.git
Log | Files | Refs

commit 38f87e6d3c9634cfccb09525ac91625f7bfb37da
parent 123bc6a1aab8982955ea7d594197c2099d2acf95
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Fri,  3 Jan 2014 22:38:32 +0530

functions are seperated by two blank lines.

Diffstat:
src/gitblag.sh | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gitblag.sh b/src/gitblag.sh @@ -49,6 +49,7 @@ # Function to prepare for email generation. This whether an email # should even be generated. + prep_for_email() { # --- Arguments @@ -118,6 +119,7 @@ generate_email() generate_email_footer } + generate_email_header() { @@ -140,6 +142,7 @@ generate_email_header() EOF } + generate_email_footer() { SPACE=" " @@ -151,6 +154,7 @@ generate_email_footer() EOF } + generate_email_body() { body=$(echo "$commit_msg" | sed '1,/^$/d') @@ -158,6 +162,7 @@ generate_email_body() echo "$body" } + send_mail() { if [ -n "$envelopesender" ]; then @@ -167,6 +172,7 @@ send_mail() fi } + # ---------------------------- main() # --- Config