Re: [PATCH 1/3] range-diff: refactor check for commit range
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 21, 2021, 23:27 UTC
- Message-ID
- <xmqq7do5c1lx.fsf@gitster.c.googlers.com>
- In-Reply-To
- <5839ba4f7615819ed6f9a0fcb6de1855cd2e89e1.1611267638.git.gitgitgadget@gmail.com>
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 11 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de> > > Currently, when called with exactly two arguments, we test for a literal > `..` in each of the two. > > However, `<commit>^!` is a perfectly valid commit range, equivalent to > `<commit>^..<commit>` according to the `SPECIFYING RANGES` section of > gitrevisions[7]. > > In preparation for allowing more sophisticated ways to specify commit > ranges, let's refactor the conditional into its own function.
Makes sense.