From: Elijah Newren Date: Sat, 05 Oct 2019 18:12:53 GMT Subject: Re: [PATCH v4 1/6] rebase -i: add --ignore-whitespace flag Message-ID: In-Reply-To: <9e311cef-1f9d-4146-c2a7-c8179cdcdaf1@gmail.com> On Fri, Oct 4, 2019 at 2:29 AM Phillip Wood wrote: > > Hi Rohit > > On 07/09/2019 12:50, 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 | 13 ++++- > > builtin/rebase.c | 22 +++++++-- > > t/t3422-rebase-incompatible-options.sh | 1 - > > t/t3433-rebase-options-compatibility.sh | 65 +++++++++++++++++++++++++ > > 4 files changed, 94 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 6156609cf7..873eb5768c 100644 > > --- a/Documentation/git-rebase.txt > > +++ b/Documentation/git-rebase.txt > > @@ -371,8 +371,16 @@ 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:: > > + Behaves differently depending on which backend is selected. > > ++ > > +'am' backend: When applying a patch, ignore changes in whitespace in > > +context lines if necessary. > > ++ > > +'interactive' backend: Treat lines with only whitespace changes as > > +unchanged for the sake of a three-way merge. > > + > > --whitespace=