public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Zopolis0 <creatorsmithmdt@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Applying GNU style automatically
Date: Tue, 20 Sep 2022 08:31:43 +0100	[thread overview]
Message-ID: <CAH6eHdQ046Z=gCMNPZ_M_BMb9R1aF3tFizmXCEmwb5E6vw0FJw@mail.gmail.com> (raw)
In-Reply-To: <CAEYL+X_VU1tyMd7RB8qfKBRbZ5wmsQkwEqS12-=de6asmWTUhw@mail.gmail.com>

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.

      reply	other threads:[~2022-09-20  7:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-20  1:17 Zopolis0
2022-09-20  7:31 ` Jonathan Wakely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH6eHdQ046Z=gCMNPZ_M_BMb9R1aF3tFizmXCEmwb5E6vw0FJw@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=creatorsmithmdt@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).