chiark / gitweb /
tg mail: Tidyup
authorPetr Baudis <pasky@suse.cz>
Mon, 22 Sep 2008 15:44:49 +0000 (17:44 +0200)
committerPetr Baudis <pasky@suse.cz>
Mon, 22 Sep 2008 15:44:49 +0000 (17:44 +0200)
README
tg-mail.sh

diff --git a/README b/README
index 719b919d51adf85a5ddbd56410a458870e25c006..5fe7d0968ab1de18da77bb4263420e4141c9d5e0 100644 (file)
--- a/README
+++ b/README
@@ -282,10 +282,9 @@ tg mail
        patch header.
 
        Since it actually boils down to `git send-email` please refer to
-       it's documentation for details on how to setup email for git.
+       its documentation for details on how to setup email for git.
 
-
-       TODO: tg mail patchfile  to mail an already exported patch
+       TODO: 'tg mail patchfile' to mail an already exported patch
        TODO: mailing patch series
        TODO: specifying additional options and addresses on command
              line
index f3abd2c0285493e748fd9809e0cb921b985dccc9..cf68155565f8ab90945704489f92850a639e8831 100644 (file)
@@ -19,7 +19,6 @@ while [ -n "$1" ]; do
        esac
 done
 
-# TODO refactor me into something common?
 [ -n "$name" ] || name="$(git symbolic-ref HEAD | sed 's#^refs/heads/##')"
 base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" ||
        die "not a TopGit-controlled branch"
@@ -30,7 +29,7 @@ patchfile="$(mktemp -t tg-mail.XXXXXX)"
 $tg patch $name >"$patchfile"
 
 hlines=$(grep -n -m 1 '^---' "$patchfile" | sed 's/:---//')
-header=$(head -$(($hlines - 1)) "$patchfile")
+header=$(head -$(($hlines - 1)) "$patchfile")