Re: Source formatting issues while maintaining code
"Andrew Semprebon" <[email protected]> Mon, 24 Nov 2008 05:28:23 -0500
| Newsgroups | gmane.comp.programming.language-of-the-year |
|---|---|
| Message-ID | <[email protected]> |
To me, having the code as readable as possible is more important than assigning blame, so I would go with auto-formatting the whole code base as suggested. In my experience, once you have an established standard for laying out code, people will follow it, especially if its as easy as clicking on an IDE menu item. On Sun, Nov 23, 2008 at 10:31 AM, Charles Miller <[email protected]>wrote: > On 23/11/2008, at 10:12 AM, Tushar Joshi wrote: > > > Have any one implemented any creative method to solve this problem? > > If it's important to you, you could just bite the bullet, run the > entire source tree through an auto-formatter with the same settings as > your IDE, then re-check it in. You'll make it a lot harder to get > meaningful "blame" information, but at least the code will be > consistently formatted from then on. > > Alternatively, you could get a better diff program, preferably one > that has a setting to ignore whitespace-only changes. > > C > > -- -- Andrew Semprebon * http://semprebon.blogspot.com/