[Python-Dev] Reindenting patches

Antoine Pitrou solipsis at pitrou.net
Wed May 5 15:10:16 CEST 2010


Nick Coghlan <ncoghlan <at> gmail.com> writes:
> 
> Howver, if we delay fixing the C file indentation until we're already on
> hg, the merge tools should offer the best chance of being able to apply
> pre-fix patches and have the software figure out where the whitespace
> changes need to be accounted for.

For the record, I've added to the untabify script a patch rewriting option
("-p") which reindents all patch hunks for C files containing tabs. It should
minimize manual reformatting work with existing patches.

Regards

Antoine.




More information about the Python-Dev mailing list