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 04D311F45A for ; Mon, 12 Aug 2019 19:46:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727088AbfHLTqP (ORCPT ); Mon, 12 Aug 2019 15:46:15 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43783 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbfHLTqO (ORCPT ); Mon, 12 Aug 2019 15:46:14 -0400 Received: by mail-pg1-f195.google.com with SMTP id r26so14058860pgl.10 for ; Mon, 12 Aug 2019 12:46:14 -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=zEZoiYNssHr8JsFHWLRmMGFlZ0z9OpkYg9WntMWCXRs=; b=IdFswqEzH9ZLEwUaKlQPgg9VW+CarkEJBFpEsSDbdHkb+Ums5oS+e3E6WjmLk4DgAp i23l46HmHhY8CKIuMhOMKc2F6dHx7WqRwPLM7UwPTU1pTSGkbZVK9+Qy5b79zs1OwXGG fkPZ+iiAXH524KsjCJkYWHhPYR0DvYh5PDMb8jkAaSLaM41F0Y2uZ+lkxO8oND9i2mF9 X0cOMk1L88cGIt73zyM5tu9EADZyKEhFG3xLYuKz/5E5rfrVUANgaIoK7JQB5OHUMYEi 6o0D5x4JvunGWOOWPm7wVVdBNbOiyZqhpE2Ki4Um9AYPIMZ6awa4pjLRJ53fImj+okcL CQbg== 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=zEZoiYNssHr8JsFHWLRmMGFlZ0z9OpkYg9WntMWCXRs=; b=mrz6g7sZzTM9910IzFUMIO4M731gUgDofPRIGtdocy9P+BoX6by1Vfr7yD4hsDgxMz MDRSCjX3dbj/EeKinsV3zvZ6JAtL7GdiRlfoPnskBIHQaXZ2UJNEYcngGvVmrkdEFZTU 5Bd4Vp+Ebn2Wo/u4qO8DRH3RPsIdPT/mykNZ/6z3q7TTdi5bytccMSTj7095OqAr5owx nIOA01wcsb48MP4KVRZ97EYk0RBJmaUrI/YWDpgHJDxAzjmBX+2xKXXY0+z4uLzjmiqz RD1xd3WDzly6hf44gHG1pTlkiG/TI/vilqycKq75ZKJ37zoCSxUwSK6o4b5sr00sRNlT gW4Q== X-Gm-Message-State: APjAAAWSDLn+phX0d0v+OlD7x5/jeGoiCY+cZNnTsFCU+Qq7gSrXtgOS A6Sr/lFQVtcEZtyqQEix3x05B5kRj98= X-Google-Smtp-Source: APXvYqyAh2n/ypsjANR9v2xY72Fp5XAbpTUtgrmb7NV+MQWgyjDPJ8brYa5GKtLj9Nnb4T+NHY9rDg== X-Received: by 2002:a63:89c2:: with SMTP id v185mr31357092pgd.241.1565639173563; Mon, 12 Aug 2019 12:46:13 -0700 (PDT) Received: from ar135.iitr.ac.in ([103.37.200.228]) by smtp.gmail.com with ESMTPSA id j187sm13275947pfg.178.2019.08.12.12.46.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 12:46:12 -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, newren@gmail.com, phillip.wood123@gmail.com, t.gummerer@gmail.com Subject: [GSoC][PATCH v2 1/6] rebase -i: add --ignore-whitespace flag Date: Tue, 13 Aug 2019 01:12:55 +0530 Message-Id: <20190812194301.5655-2-rohit.ashiwal265@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190812194301.5655-1-rohit.ashiwal265@gmail.com> References: <20190806173638.17510-1-rohit.ashiwal265@gmail.com> <20190812194301.5655-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 | 29 +++++++++-- t/t3422-rebase-incompatible-options.sh | 1 - t/t3433-rebase-options-compatibility.sh | 65 +++++++++++++++++++++++++ 4 files changed, 97 insertions(+), 8 deletions(-) create mode 100755 t/t3433-rebase-options-compatibility.sh diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index 6156609cf7..28e5e08a83 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=