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 174D61F462 for ; Wed, 24 Jul 2019 21:21:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728244AbfGXVVq (ORCPT ); Wed, 24 Jul 2019 17:21:46 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38246 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbfGXVVp (ORCPT ); Wed, 24 Jul 2019 17:21:45 -0400 Received: by mail-pg1-f193.google.com with SMTP id f5so13012743pgu.5 for ; Wed, 24 Jul 2019 14:21:44 -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=q0JTi7jD3pxRqmSsUNuCUk5QGCVQOJ2SSGhJZxIwMic=; b=a3F1Uzf8Jq1mlqBLMHdYkjl7flRKoYtQKBQlRm2jCqAYvCLFiBv6JmcXx3fJzfqTGa yU8N5KVYhSfEXop6J64sMzzcYveme8t/wyexl/q6i340nKTaH/MGNT3srbjrcfrM3Yvw AzM6/h43F5bJ+ZOy69bQnVhhVhtq389Pw8l4+3pMdd4Z6Ia/sMff2ZkjaK2+tngNf36S uMtkUaPSLoPZNDPpPqdGDEcUU9oJ+fEX8r222c7zYO4SxG5RB5OS0HZwi7Wo1uvytaC9 TelyCTDq4/mT/a5MKC86RMZcZrU66z8hkw8de06I9DjucfXDGwROt9CsciiZp3p9qKBj 9XRA== 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=q0JTi7jD3pxRqmSsUNuCUk5QGCVQOJ2SSGhJZxIwMic=; b=F7LBjAB5rDOfPw9F1APn5QGByswtP+d9o6v27hyIncaxA9R4CewKf6JbLOWoZiiHdu ubah8pbqOK02apukdwc+YvBSCJ73M7QhPUW2L17JiIjGe4Q2pWKXcRt9CWwhbDLetTDx 73xZ4qHsy8Zl2gHgVV3E2WD6q79EoeBwMNu3VNigj6wh9rWUuYPUQ15QnpKJ6HGirhL8 XNavvWaD2Vw4YW2hUhSG2fd7LcaZStGpCpDG99vcBNNq/AlZi4ybL/mGHboulsN2Ft+z sy8Q+E1ilsyLSclnoF5SPRyBTvM2pq8eQBotIKm2ytuGcqi6POA0GTOdeZDDXKbcpABK qICQ== X-Gm-Message-State: APjAAAWsezQFPyoac9qV0UTOeW5iZfIt1pjYhQHNx5oFmI4JeErqYvp2 c/kXMTBWxwcC4EuGwJoKT0Q= X-Google-Smtp-Source: APXvYqxuM7iv3/3jSgOQ172geDTAFZ3U+LR6gOAzqnssFcCzRPnB9AMAhv6mm+Iox1zXy+eNsu4aWQ== X-Received: by 2002:aa7:9819:: with SMTP id e25mr12839694pfl.47.1564003304433; Wed, 24 Jul 2019 14:21:44 -0700 (PDT) Received: from ar135.iitr.ac.in ([103.37.200.227]) by smtp.gmail.com with ESMTPSA id i9sm46777405pgo.46.2019.07.24.14.21.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 14:21:43 -0700 (PDT) From: Rohit Ashiwal To: rohit.ashiwal265@gmail.com Cc: Johannes.Schindelin@gmx.de, git@vger.kernel.org, gitster@pobox.com, martin.agren@gmail.com, phillip.wood123@gmail.com, t.gummerer@gmail.com, newren@gmail.com Subject: [GSoC][PATCH v3 1/1] rebase -i: add --ignore-whitespace flag Date: Thu, 25 Jul 2019 02:48:46 +0530 Message-Id: <20190724211846.18131-2-rohit.ashiwal265@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724211846.18131-1-rohit.ashiwal265@gmail.com> References: <20190712185015.20585-1-rohit.ashiwal265@gmail.com> <20190724211846.18131-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 | 66 +++++++++++++++++++++++++ 4 files changed, 96 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=