From: Phillip Wood Date: Mon, 22 Jul 2019 10:00:40 GMT Subject: Re: [GSoC][PATCH v2 1/1] rebase -i: add --ignore-whitespace flag Message-ID: <6e61e65e-53c2-eb49-2197-03fe9796ef1f@gmail.com> In-Reply-To: <20190718185514.20108-2-rohit.ashiwal265@gmail.com> Hi Rohit, It's good to see another patch reducing the differences between the rebase back ends. On 18/07/2019 19:55, 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 | 9 +++- > builtin/rebase.c | 26 ++++++++-- > sequencer.h | 1 + > t/t3422-rebase-incompatible-options.sh | 1 - > t/t3431-rebase-options-compatibility.sh | 66 +++++++++++++++++++++++++ > 5 files changed, 97 insertions(+), 6 deletions(-) > create mode 100755 t/t3431-rebase-options-compatibility.sh > > diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt > index 5e4e927647..eda52ed824 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=