[PATCH 1/2] Indent code before next channge

David Newall openssh at davidnewall.com
Wed Jun 30 20:14:08 AEST 2021


Hi John,

On 30/6/21 2:57 pm, John Cotton Ericson wrote:
> The nature of the change is putting a decent chunk of existing 
> autoconf m4 within
> a newly-introduced if-then-else. That means either the indention will 
> become wrong,
> or there will be some churn/noise reindenting the old code.
>
> I chose to reindent first, making on odd 2x indent, and then add the 
> new code and
> if-then-else, also fixing the indent.

The problem is that a diff for a version from before your patch 
comparing with a version
after will be noisy.  That's what I want you to avoid.

> A third option would be to simply do the first of those to patches, 
> making the minimal
> change and then leaving the indentation incorrect. 

That's what I think you should do.  Adding a comment at the if-then-else 
saying why the
indent is wrong might help avoid flammage about wrongly indented code.

Regards,

David


More information about the openssh-unix-dev mailing list