From: Junio C Hamano <junkio@cox.net>
To: unlisted-recipients:; (no To-header on input)
Cc: git@vger.kernel.org
Subject: Re: git-feed-mail-list.sh
Date: Wed, 03 May 2006 22:16:02 -0700 [thread overview]
Message-ID: <7v8xpi9xpp.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <7vmzdy9zl2.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Wed, 03 May 2006 21:35:37 -0700")
Junio C Hamano <junkio@cox.net> writes:
> David Woodhouse <dwmw2@infradead.org> writes:
>
>> # $FROM specifies the From: header used in the mails. It'll default
>> # to GIT_COMMITTER_EMAIL if that exists, or to `whoami`@`hostname`
>
> I am not sure if this part is tested..
>
>> # Unless configured otherwise, just cat it instead of mailing.
>> if [ -z "$FROM" ]; then
>> if [ -z "$GIT_COMMITTER_EMAIL" ]; then
>> FROM="$GIT_COMMITTER_EMAIL"
>> else
>> FROM=`whoami`@`hostname`
>> fi
>> fi
>
> Maybe you meant 'if test -n "$GIT_COMMITTER_EMAIL"' here?
>
>> # takes an object and generates the object's parent(s)
>> createmail () {
>> local commit
>
> If you were to do bashism local, don't you want to also localize
> other variables like key, SUBHEX, NEWSUB,...?
>
> It may make sense to enhance format-patch to do the Q encoding,
> so that you do not have to do this part by hand...
>
>> git-diff -B $parent $commit > $TMPCM
>> diffstat -p1 $TMPCM 2>/dev/null
>
> With GIT 1.3.0 and later:
>
> git diff --patch-with-stat $parent..$commit
>
> would be simpler here.
Or at least lose "diffstat -p1" and replace it with
git-apply --stat --status
which would be more pleasant.
>> if [ -z $2 ]; then
>> lastmail=`cat $MAILTAG`
>> else
>> lastmail=$(git-rev-parse $2)
>> fi
>
> lastmail=`git rev-parse --default "$MAILTAG" ${2+"$2"}`
As I wrote it this is broken, sorry.
This assumes you stop doing "MAILTAG=.git/refs/tags/MailDone"
by hand and lose "do we have GIT_DIR" logic as well.
Instead define MAILTAG=tags/MailDone or maybe refs/tags/MailDone
and let "git rev-parse --default refs/tags/MailDone" figure out
what to do when GIT_DIR is set or unset.
next prev parent reply other threads:[~2006-05-04 5:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-03 17:48 git-feed-mail-list.sh David Woodhouse
2006-05-04 4:35 ` git-feed-mail-list.sh Junio C Hamano
2006-05-04 5:16 ` Junio C Hamano [this message]
2006-05-08 23:44 ` git-feed-mail-list.sh David Woodhouse
2006-05-09 0:19 ` git-feed-mail-list.sh Linus Torvalds
2006-05-09 0:28 ` git-feed-mail-list.sh David Woodhouse
2006-05-09 0:36 ` git-feed-mail-list.sh Junio C Hamano
2006-05-09 0:53 ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09 0:57 ` git-feed-mail-list.sh Junio C Hamano
2006-05-09 0:59 ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09 0:45 ` git-feed-mail-list.sh Linus Torvalds
2006-05-09 1:01 ` git-feed-mail-list.sh David Woodhouse
2006-05-09 1:05 ` git-feed-mail-list.sh Junio C Hamano
2006-05-09 1:12 ` git-feed-mail-list.sh David Woodhouse
2006-05-10 8:49 ` git-feed-mail-list.sh Martin Mares
2006-05-09 1:27 ` git-feed-mail-list.sh Linus Torvalds
2006-05-09 0:55 ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09 1:03 ` git-feed-mail-list.sh Junio C Hamano
2006-05-09 1:09 ` git-feed-mail-list.sh Bertrand Jacquin
2006-05-09 2:41 ` git-feed-mail-list.sh Junio C Hamano
2006-05-09 3:06 ` git-feed-mail-list.sh Linus Torvalds
2006-05-09 7:32 ` git-feed-mail-list.sh Junio C Hamano
2006-05-09 1:18 ` git-feed-mail-list.sh Linus Torvalds
2006-05-09 7:15 ` git-feed-mail-list.sh Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v8xpi9xpp.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.