• Johannes Schindelin's avatar
    range-diff: improve the order of the shown commits · 9dc46e02
    Johannes Schindelin authored
    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
    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's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
range-diff.c 8.04 KB