Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # git_send_email [--cc=ARG] files
- git_send_email() {
- local files
- local cc=""
- if [[ "$1" == --cc* ]] || [[ "$1" == --to* ]]; then
- cc="$1"
- shift
- fi
- files="$*"
- test -n "$files" || return 1
- # Do not use --to-cmd because it collects addresses per each email.
- # Instead need to collect addressesonce and use them for entire set.
- if [ "$cc" == "" ]; then
- git send-email --to="$(scripts/get_maintainer.pl --no-multiline --separator=, --no-git --no-roles --no-rolestats --no-git-fallback $files)" \
- --cc linux-kernel@vger.kernel.org $files
- else
- git send-email "$cc" --to="$(scripts/get_maintainer.pl --no-multiline --separator=, --no-git --no-roles --no-rolestats --no-git-fallback $files)" \
- --cc linux-kernel@vger.kernel.org $files
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement