Posts Tagged ‘cover-leter’

git’s goodies: git format-patch –cover-letter

Thursday, March 27th, 2008

Sometimes we have to send patch series and it's always useful to add a cover letter (or cover email) explaining what your series is implementing/fixing.

Newest git (currently only on git's git tree) provides a new format-patch option to generate the cover leter for you. In the cover leter git adds shortlog and diffstat, you only need to change the subject and mail body.

It's as simple as:

 
$ git format-patch -o directory -n --cover-letter $commit1..$commit2

After that take a look at directory/0000-* and change what's necessary

VN:F [1.9.0_1079]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.0_1079]
Rating: 0 (from 0 votes)