From: Phillip Wood Date: Tue, 20 Aug 2019 13:56:06 GMT Subject: Re: [PATCH v3 0/6] rebase -i: support more options Message-ID: <71c313d7-e08d-f62f-c52e-aabca0d97002@gmail.com> In-Reply-To: <20190820034536.13071-1-rohit.ashiwal265@gmail.com> Hi Rohit On 20/08/2019 04:45, Rohit Ashiwal wrote: > I've tries to incorporated all the suggestions. It is helpful if you can list the changes to remind us all what we said. (as a patch author I find composing that is helpful to remind me if there's anything I've forgotten to address) Also there are a couple of things that were discussed such as splitting up the author and passing it round as a tuple and testing a non-default timezone which aren't included - that's fine but it helps if you take a moment to explain why in the cover letter. > > Some points: > - According to v2.0.0's git-am.sh, ignore-date should override > committer-date-is-author-date. Ergo, we are not barfing out > when both flags are provided. > - Should the 'const' qualifier be removed[2]? Since it is leaving > a false impression that author should not be free()'d. The author returned by read_author_ident() is owned by the strbuf that you pass to read_author_ident() which is confusing. Best Wishes Phillip > > [1]: git show v2.0.0:git-am.sh > [2]: https://github.com/git/git/blob/v2.23.0/sequencer.c#L959 > > Rohit Ashiwal (6): > rebase -i: add --ignore-whitespace flag > sequencer: add NULL checks under read_author_script > rebase -i: support --committer-date-is-author-date > sequencer: rename amend_author to author_to_rename > rebase -i: support --ignore-date > rebase: add --reset-author-date > > Documentation/git-rebase.txt | 26 +++-- > builtin/rebase.c | 53 +++++++--- > sequencer.c | 135 ++++++++++++++++++++++-- > sequencer.h | 2 + > t/t3422-rebase-incompatible-options.sh | 2 - > t/t3433-rebase-options-compatibility.sh | 100 ++++++++++++++++++ > 6 files changed, 289 insertions(+), 29 deletions(-) > create mode 100755 t/t3433-rebase-options-compatibility.sh > > Range-diff: > 1: 4cd0aa3084 ! 1: e82ed8cad5 rebase -i: add --ignore-whitespace flag > @@ -19,10 +19,13 @@ > 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. > ++ 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=