On Fri, Oct 25, 2024 at 7:54 AM Jakub Jelinek <ja...@redhat.com> wrote:
>
> On Fri, Oct 25, 2024 at 01:25:25PM +0200, Arsen Arsenović wrote:
> > Maybe we should go the other way around?  Compressing eight spaces into
> > a tab leads to strange artifacts in diffs (where lines appear
> > misindented because some were aligned by tabs and some by spaces), and
> > nowadays editor authors seem to have forgotten tabs are eight spaces and
> > instead default to (or, worse, hard-code) four, obviously making the
> > codebase quite unreadable.  We also don't get the benefit of being able
> > to adjust tabstop locally to our preferences when we use two-column
> > indentation, so I don't see an advantage to keeping 'indent-tabs-mode
> > (or equivalent in other editors) enabled.
>
> Editors which are worth a dime handle tabs fine, and I think using tabs is
> better.
> Changing to space would be a major obstackle in git blame/git archeology,
> something lots of people use very often.

FWIW git blame has a -w option for ignoring whitespace changes.

> Admittely even this patch which changes 40860 lines isn't very nice, but
> if we had to change 1219139 lines instead (still talking just about
> gcc/, include/, lib{gcc,cpp,iberty,stdc++-v3})...
>
>         Jakub
>

Reply via email to