git-format-patch archive for linux upstreaming
- Linux Kernel patch submission checklist
- Submitting patches: the essential guide to getting your code into the kernel
- Linux kernel coding style
- Creating and Editing patches for the Linux Kernel with git
append to ~/.gitconfig
[sendemail]
from = Marcello Sylvester Bauer <sylv@sylv.io>
smtpuser = sylv@sylv.io
smtpserver = smtp.mailbox.org
smtpencryption = tls
smtpserverport = 587
chainreplyto = false
tocover = true
cccover = true
[sendemail.linux]
tocmd = "`pwd`/scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats --nol"
cccmd = "`pwd`/scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats --nom"
Example:
# setup
DIR=../linux-send-email
TREE=hwmon
SET=max6639
VERSION=1
BASE=hwmon-next
# 1. format patch
git format-patch -o $DIR/$TREE/$SET/v$VERSION --cover-letter -v $VERSION -n --thread=shallow $BASE..HEAD
# 2. edit cover letter
vim $DIR/$TREE/$SET/v$VERSION/v$VERSION-0000*
# send patches
git send-email --identity=linux $DIR/$TREE/$SET/v$VERSION/