From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id D7BB43858D37 for ; Tue, 20 Sep 2022 07:31:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D7BB43858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x636.google.com with SMTP id 13so4049584ejn.3 for ; Tue, 20 Sep 2022 00:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=khCJFYGJ7aA1XsdtHqSuxahDFKmrGBBzgcnVW+lw90M=; b=iwRkirFUi+Ej4L48XMNQlkLb5X4Lv5RIguZXX1YeTXl3vHfNcY2JQSUvSSYOrbYRJ2 29Ba90bX+kROuBTmW51Gat2ZVrf7DnueXBDW8gAhK7AQOIpd4K8EVgnGzhtfkPCSvFuv rVFNRXBs0R4FQ920YnyBrqWfwJ7vEsmSzasAoB54RAz9pdsa81g/gqhtdQBU1YZjzIoE 4BcIR5JaXM37dDrIg8bycHcHPOMJ45YMeb+3Qjs/DBfJ+zyD8kklTYB14P6vjhNYK/lA wB6AqAQcOKCalLnjMfI2OjdFUu574p7/ZSTDhzq3M31gBFEUUHuZ4p/i6uPHs7uiluqi I5cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=khCJFYGJ7aA1XsdtHqSuxahDFKmrGBBzgcnVW+lw90M=; b=QUiC0X7XxGQFa9Fp4wEbi6oksE5T4c7j/TP5qE6cKmWwRb839lfTDP0WmV/CwVlB6u k3Kv1BCdZ3s2s+Cb/urqgGg8VdCALm2DHME0ZFOP2rkzL/Us4ve6XhulcZma8go/kzuE eafcOJx9sydr1Wr2+2fjaUBkS7FEEJkmm0HlZbG2VR1vZKnUOP2lOy11+eGjR11UQe9K cOykG+oJTj/GXhNn/UvPvNqRTuDrv0DDvoXz097uPLVXdMfpUXhBJ9noKGQ/U7iZ3jgs Flue7apPb4O5fFrzj0v2BFmIKtnQxClikakoVBhjUw+9cTMftHJlujEv62iEorSiT16w aeRw== X-Gm-Message-State: ACrzQf3Ddl5WJv1wioCSi6SUD8wJPIQ7L6P8dKHzYsfVuylBwfmvgagP 8xj+mdvmjvvgfclkR6oqi62ZoYOEO+BJdPHjQcs= X-Google-Smtp-Source: AMsMyM7a/fcaiPsoFlK15phOTa69sPoh3BpmQdCPc8oYPy1OvQcibLaF1U+5X7lpxWgmbdWgSdvaICcLxfbh/TCWGKY= X-Received: by 2002:a17:907:7f1c:b0:77d:248:c1c3 with SMTP id qf28-20020a1709077f1c00b0077d0248c1c3mr14824579ejc.416.1663659114725; Tue, 20 Sep 2022 00:31:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 20 Sep 2022 08:31:43 +0100 Message-ID: Subject: Re: Applying GNU style automatically To: Zopolis0 Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 20 Sept 2022 at 02:18, Zopolis0 via Gcc-help 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.