From patchwork Tue Aug 6 17:36:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Ashiwal X-Patchwork-Id: 11079487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8EA617E0 for ; Tue, 6 Aug 2019 17:39:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99A311FF28 for ; Tue, 6 Aug 2019 17:39:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DC01201BC; Tue, 6 Aug 2019 17:39:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D209A200CB 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 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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=