> > It would have been helpful if the message "PATCH [0/x]" would have been
> > sent to the i2c-list also.
> 
> Thanks, next time I'll try check the cc list in the cover letter
> manually after running git format patch. I guess there's no way
> to deal with that in an automated way.

I use this hackish script as --cc-cmd with git:

#! /bin/sh
#
# cocci_cc - send cover letter to all mailing lists referenced in a patch series
# done by Wolfram Sang in 2012 - WTFPLv2

name=${1##*/}
num=${name%%-*}

if [ "$num" = "0000" ]; then
        dir=${1%/*}
        for f in $dir/*; do
                patchname=${f##*/}
                [ "${patchname%%-*}" = "0000" ] && continue
                scripts/get_maintainer.pl --no-m $f
        done | sort -u
else
        scripts/get_maintainer.pl $1
fi

Attachment: signature.asc
Description: Digital signature

Reply via email to