Re: Style isn't always religious
>> On checking out, you indent the code to your[color=blue][color=green]
>> liking. Before checking in, you indent it to the house style. Problem
>> solved.[/color]
>
>Does anyone do this in practice? I have not, but I suspect that
>it would lead to a large number of whitespace-only changes,
>because adherence to style is not normally done religiously.[/color]
CVS can be made to do things like re-indenting code on the way IN
and/or OUT of the repository, automatically. It would seem (but I
haven't tested this) that "cvs diff" (without -b) between the
working copy and the repository would pick up a lot of whitespace-only
changes, but diffs between two checked-in versions would not.
I don't use this feature, largely because it messes up imported
distributions (submitting diffs or bug reports based on re-indented
source code won't get much attention).
Gordon L. Burditt
>> On checking out, you indent the code to your[color=blue][color=green]
>> liking. Before checking in, you indent it to the house style. Problem
>> solved.[/color]
>
>Does anyone do this in practice? I have not, but I suspect that
>it would lead to a large number of whitespace-only changes,
>because adherence to style is not normally done religiously.[/color]
CVS can be made to do things like re-indenting code on the way IN
and/or OUT of the repository, automatically. It would seem (but I
haven't tested this) that "cvs diff" (without -b) between the
working copy and the repository would pick up a lot of whitespace-only
changes, but diffs between two checked-in versions would not.
I don't use this feature, largely because it messes up imported
distributions (submitting diffs or bug reports based on re-indented
source code won't get much attention).
Gordon L. Burditt
Comment