range-diff: offer --left-only/--right-only options
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 5 Feb 2021 14:46:13 +0000 (14:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Feb 2021 05:14:31 +0000 (21:14 -0800)
commit1e79f973266cfe0e3bab0e26e869b682078e457d
tree419e8d3df016350fa2867d2be741f90385b94fa4
parent3e6046edadf409537cc9e991d1df628fa96953ba
range-diff: offer --left-only/--right-only options

When comparing commit ranges, one is frequently interested only in one
side, such as asking the question "Has this patch that I submitted to
the Git mailing list been applied?": one would only care about the part
of the output that corresponds to the commits in a local branch.

To make that possible, imitate the `git rev-list` options `--left-only`
and `--right-only`.

This addresses https://github.com/gitgitgadget/git/issues/206

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-range-diff.txt
builtin/range-diff.c
range-diff.c
range-diff.h
t/t3206-range-diff.sh