Formatting curmudgeon HOWTO - Mailing list pgsql-hackers

From Greg Smith
Subject Formatting curmudgeon HOWTO
Date
Msg-id 4DF530E5.8090605@2ndQuadrant.com
Whole thread Raw
List pgsql-hackers
With another round of GSoC submissions approaching, I went looking 
around for some better guidance on the topic of how to follow terse 
submission guidelines like "blend in with the surrounding code" or 
"remove spurious whitespace".  And I didn't find any.  Many mature 
open-source projects say things like that, but I haven't been able to 
find a tutorial of just what that means, or how to do it.

Now we have http://wiki.postgresql.org/wiki/Creating_Clean_Patches to 
fill that role, which fits in between "Working with Git" and "Submitting 
a Patch" as a fairly detailed walkthrough.  That should be an easier URL 
to point people who submit malformed patches toward than the 
documentation we've had before.

Advocacy aside:  this page might be a good one to submit to sites that 
publish open-source news.  It's pretty generic advice, is useful but not 
widely documented information, and it reflects well on our development 
practice.  I'm trying to reverse the perception we hear about sometimes 
that submitting patches to PostgreSQL is unreasonably difficult.  Seeing 
an example of how much easier it is to read a well formatted patch 
serves well for making people understand why the project has high 
expectations for formatting work.  It's not pedantic, it's functionally 
better.  I threw it onto reddit as a first spot to popularize:  
http://www.reddit.com/r/technology/comments/hy0aq/creating_clean_patches_with_git_diff/

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us




pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Detailed documentation for external calls (threading, shared resources etc)
Next
From: Robert Haas
Date:
Subject: lazy vxid locks, v1