public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Applying GNU style automatically
@ 2022-09-20  1:17 Zopolis0
  2022-09-20  7:31 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Zopolis0 @ 2022-09-20  1:17 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

The editor I use (Sublime Text) disagrees with gcc on tabs vs spaces and
tabs-spaces mixing, so every change I make is surrounded by a lot of
whitespace diff.

This makes git merge freak out, and I want to get rid of it.

I have too many patches to do manually, so I was wondering whether
check_GNU_style.(sh/py) had a way to automatically apply the recommended
whitespace changes.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Applying GNU style automatically
  2022-09-20  1:17 Applying GNU style automatically Zopolis0
@ 2022-09-20  7:31 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2022-09-20  7:31 UTC (permalink / raw)
  To: Zopolis0; +Cc: gcc-help

On Tue, 20 Sept 2022 at 02:18, Zopolis0 via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> The editor I use (Sublime Text) disagrees with gcc on tabs vs spaces and
> tabs-spaces mixing, so every change I make is surrounded by a lot of
> whitespace diff.
>
> This makes git merge freak out, and I want to get rid of it.
>
> I have too many patches to do manually, so I was wondering whether
> check_GNU_style.(sh/py) had a way to automatically apply the recommended
> whitespace changes.

You can get a plugin for sublimetext to make it follow the
https://editorconfig.org/ spec. That will allow you to put a
.editorconfig file in your GCC source tree and your editor will use
the desired config. You can add the .editorconfig file to the
.git/info/exclude file so that Git ignores it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-20  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20  1:17 Applying GNU style automatically Zopolis0
2022-09-20  7:31 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).