RFE: Add -p to the diff options to provide more context in commit mails

Josh Boyer jwboyer at gmail.com
Fri Apr 24 12:25:42 UTC 2009


On Thu, Apr 23, 2009 at 06:35:41PM -0400, Chuck Ebbert wrote:
>This trivial patch adds more context to the diffs in commit mails:
>
>--- CVSROOT.orig/syncmail
>+++ CVSROOT/syncmail
>@@ -147,7 +147,7 @@ def calculate_diff(filespec):
>         brief = ""
>         if optNoDiff:
>             brief = "--brief"
>-        diffcmd = '/usr/bin/cvs -f diff %s -kk -u -N -r %s -r %s %s' % (
>+        diffcmd = '/usr/bin/cvs -f diff %s -kk -u -p -N -r %s -r %s %s' % (
>             brief,
>             oldrev, newrev, file)
>         fp = os.popen(diffcmd)

Ack.

Also, OMG A PATCH ON THE DEVEL LIST?!

josh




More information about the fedora-devel-list mailing list