diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-08-13 04:33:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-13 10:44:50 -0700 |
commit | 9dc46e0268028059aecd140254bfe30277d04767 (patch) | |
tree | 7c3e257d67db55bba30693bd6ee0d56c5bb1faba /bundle.c | |
parent | range-diff: first rudimentary implementation (diff) | |
download | tgif-9dc46e0268028059aecd140254bfe30277d04767.tar.xz |
range-diff: improve the order of the shown commits
This patch lets `git range-diff` use the same order as tbdiff.
The idea is simple: for left-to-right readers, it is natural to assume
that the `git range-diff` is performed between an older vs a newer
version of the branch. As such, the user is probably more interested in
the question "where did this come from?" rather than "where did that one
go?".
To that end, we list the commits in the order of the second commit range
("the newer version"), inserting the unmatched commits of the first
commit range as soon as all their predecessors have been shown.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bundle.c')
0 files changed, 0 insertions, 0 deletions