Chapter 4. Submitting Patches

Table of Contents
4.1. Patch Format
4.2. Quality Assurance

Written by Albert den Haan

4.1. Patch Format

Your patch should include:

cvs diff -u works great for the common case where a file is edited. However, if you add or remove a file cvs diff will not report that correctly so make sure you explicitly take care of this rare case.

For additions: mention that you have some new files and include them as either separate attachments or by appending the diff -u /dev/null /my/new/file output of them to any cvs diff -u output you may have. Alernatively, use diff -Nu olddir/ newdir/ in case of multiple new files to add.

For removals, list the files.