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.8 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 B217F1F731 for ; Tue, 6 Aug 2019 17:39:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387726AbfHFRj4 (ORCPT ); Tue, 6 Aug 2019 13:39:56 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:41088 "EHLO mail-pf1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387597AbfHFRjy (ORCPT ); Tue, 6 Aug 2019 13:39:54 -0400 Received: by mail-pf1-f182.google.com with SMTP id m30so41898640pff.8 for ; Tue, 06 Aug 2019 10:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kr0MdD6Zs3+jJJUAu2M4/+X1WrNjUKQ/YhX4r5l1nzo=; b=al+h6zLsftZIDYC4EmbCLWq21XM7rzK4kO6rsRYZ1kb9G2PI9JmrMcSSN8ZdQ4Iz2n iGS9lC1+QXx2kftnYYTrDO61cGp565ZvgHOJhKiDQop7300lipfHrb5US4xmJPSKADw5 robni4T35I5PQBrNynXk1NTA69wo39saBezYV3AH7B0oN7ZmFb+klJX8TYDYTgHPK8e0 6YLRu8RkHpw2M8KzlZw+D+thDuHfDfooZn6/XyUjEn90HBxI6//KzulD2y2cVKrRsCha dNBpjnXPzBGSArSuIwyRLmp4eNAelXDBEqiA5aexJBtnrJ7ieaXRfdWscDVzcbNPhmqZ IZlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kr0MdD6Zs3+jJJUAu2M4/+X1WrNjUKQ/YhX4r5l1nzo=; b=Dm/AoCLoEGomyLGZJZ31S3nTJVgryB41lU02pRw+gytKpuokP+xNb/9njZw1sD7aDF LHg121zpGS7+HlsOyk7csILmeGYXqfhbMCJJPuNFoSwYPp0vfA5GjzbMltKaqMBa+7eM qZ6N0yAgyCI0HtvQPBrXD3OTK2j5mEJANLUs6TFIShZVFj0mVWiKmDI6IkF8ea+eGr5Y 3jrfmOjC97YgP4Vs4iDSWucQcosARyk4vtKLgqtzeFf9UlJzdoYQ2BWobdvs8tkedlda 2cmV+OHrzb72FH4JGKbvcZvJZvuY7J7cTxsnDAl0gN33V7TTZ33oogVA/uGTrWnxue/w 3byw== X-Gm-Message-State: APjAAAUJLwuAE8bkXxKVZbO3Eiz7jxNL3VeEKEIOojYMsSZbgwqYcoeU wh+8pw4LUxjOSYPafTJ8zmM= X-Google-Smtp-Source: APXvYqzFvA/5U2HbBzh8asqcXmSpzAKROGqDUvCti+n3tdRvx7BtI22FAUKG+/55EHXbw5+rzx5IOA== X-Received: by 2002:a17:90a:601:: with SMTP id j1mr4291301pjj.96.1565113192873; Tue, 06 Aug 2019 10:39:52 -0700 (PDT) Received: from ar135.iitr.local ([103.37.200.217]) by smtp.gmail.com with ESMTPSA id z20sm139757104pfk.72.2019.08.06.10.39.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 10:39:52 -0700 (PDT) From: Rohit Ashiwal To: Junio , GIT Mailing List Cc: Thomas , Elijah , Phillip , Dscho , Martin , Rohit Ashiwal Subject: [GSoC][PATCHl 1/6] rebase -i: add --ignore-whitespace flag Date: Tue, 6 Aug 2019 23:06:33 +0530 Message-Id: <20190806173638.17510-2-rohit.ashiwal265@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190806173638.17510-1-rohit.ashiwal265@gmail.com> References: <20190806173638.17510-1-rohit.ashiwal265@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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 | 10 +++- builtin/rebase.c | 26 ++++++++-- t/t3422-rebase-incompatible-options.sh | 1 - t/t3433-rebase-options-compatibility.sh | 65 +++++++++++++++++++++++++ 4 files changed, 95 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 5e4e927647..85404fea52 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -371,8 +371,13 @@ 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:: + This flag is either passed to the 'git apply' program + (see linkgit:git-apply[1]), or to 'git merge' program + (see linkgit:git-merge[1]) as `-Xignore-space-change`, + depending on which backend is selected by other options. + --whitespace=