From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 2F3171F4BD for ; Sat, 5 Oct 2019 18:13:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387777AbfJESNG (ORCPT ); Sat, 5 Oct 2019 14:13:06 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:33918 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387520AbfJESNG (ORCPT ); Sat, 5 Oct 2019 14:13:06 -0400 Received: by mail-ua1-f68.google.com with SMTP id q11so2976155uao.1 for ; Sat, 05 Oct 2019 11:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WsCfc+VKfAS3joaXBthSH2b1Cuk0XtY49GnOZUkDddw=; b=P0S1KynI/0pi+UKiNK0dSGYP1aNd9YoJK0CKWWBCNBF6Q94omlJ/fCrt65Z6m9g+C7 UoVRj5pSA1SCzUrYuIkwLCBDPyfys9GfAw2gOhK2+yjqox6dijunMDBmfk+uclH+0i38 CMW3tNIMp77PGAahylLghtVRQH4ZgFxMJzivgy0p5TZs4cKkPI3wYvn75tcgSGD5JFng C2n8EurCo3Vn9dCrTIL4JixAFz/zhLoPFiAfqzshVBCyvOz+KD7i0qbYjIGxV/w/lJbV Go+5sEVO/7pyjbP/8Mbg940njasGVXOHd+0BZdyPN5T62XYX+PZdhG6PS+1MpMyG5MUI 0IPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WsCfc+VKfAS3joaXBthSH2b1Cuk0XtY49GnOZUkDddw=; b=XoH6UhSAlSvTq8Luqy+BLSkU244qgc3EtYBL1Ln7QK7m84M1MUAWQk2E0JL/iT0CyI b8UtVWkuaYURJDXy3m4Ke20o5GYEyUcwc41sDuavGlwuZkI2JetXHcpg767H7Peiv0Vh ThF9zDfp3XeK12OI+pkw/3gL5DSbnCSureCKoQJzXj/tFFRsmCKlMawvuzaF20OKLc8z ublksxlWuw2Vjl5ZOxPr8UOhgQ6oTep0jS5h3ql2oSQwlJz+bw7jTnEJITTaCFIm3fV4 jp3J0cL2PpbglEjHN5aYg/Y/fXmAmgrHjJHGDqR0hPm0zdga7ichriWoj1Hn7HI6lFt3 OhxA== X-Gm-Message-State: APjAAAU7neFcCfdn63etT4xgWGNv2fXM53wEGSpy/CIM3YkFGa0Y7ymH EU6x8wB5vQzuwz/gjFofi0B4F5vAjQEP4O5YQV0= X-Google-Smtp-Source: APXvYqwxsZPwztnA7me4NNfWsL2VWPRYDegD8sCSzjeAmgE5Jai1mvlpEL58YiZWoaD3ctP9lE4yUS3Z0ASxkcClqL8= X-Received: by 2002:ab0:4a83:: with SMTP id s3mr11114511uae.95.1570299184490; Sat, 05 Oct 2019 11:13:04 -0700 (PDT) MIME-Version: 1.0 References: <20190806173638.17510-1-rohit.ashiwal265@gmail.com> <20190907115034.14933-1-rohit.ashiwal265@gmail.com> <20190907115034.14933-2-rohit.ashiwal265@gmail.com> <9e311cef-1f9d-4146-c2a7-c8179cdcdaf1@gmail.com> In-Reply-To: <9e311cef-1f9d-4146-c2a7-c8179cdcdaf1@gmail.com> From: Elijah Newren Date: Sat, 5 Oct 2019 11:12:53 -0700 Message-ID: Subject: Re: [PATCH v4 1/6] rebase -i: add --ignore-whitespace flag To: Phillip Wood Cc: Rohit Ashiwal , Johannes Schindelin , Git Mailing List , Junio C Hamano , =?UTF-8?Q?Martin_=C3=85gren?= , Thomas Gummerer Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, Oct 4, 2019 at 2:29 AM Phillip Wood wrote: > > Hi Rohit > > On 07/09/2019 12:50, Rohit Ashiwal wrote: > > There are two backends available for rebasing, viz, the am and the > > interactive. Naturally, there shall be some features that are > > implemented in one but not in the other. One such flag is > > --ignore-whitespace which indicates merge mechanism to treat lines > > with only whitespace changes as unchanged. Wire the interactive > > rebase to also understand the --ignore-whitespace flag by > > translating it to -Xignore-space-change. > > > > Signed-off-by: Rohit Ashiwal > > --- > > Documentation/git-rebase.txt | 13 ++++- > > builtin/rebase.c | 22 +++++++-- > > t/t3422-rebase-incompatible-options.sh | 1 - > > t/t3433-rebase-options-compatibility.sh | 65 +++++++++++++++++++++++++ > > 4 files changed, 94 insertions(+), 7 deletions(-) > > create mode 100755 t/t3433-rebase-options-compatibility.sh > > > > diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt > > index 6156609cf7..873eb5768c 100644 > > --- a/Documentation/git-rebase.txt > > +++ b/Documentation/git-rebase.txt > > @@ -371,8 +371,16 @@ If either or --root is given on the command line, then the > > default is `--no-fork-point`, otherwise the default is `--fork-point`. > > > > --ignore-whitespace:: > > + Behaves differently depending on which backend is selected. > > ++ > > +'am' backend: When applying a patch, ignore changes in whitespace in > > +context lines if necessary. > > ++ > > +'interactive' backend: Treat lines with only whitespace changes as > > +unchanged for the sake of a three-way merge. > > + > > --whitespace=