• Junio C Hamano's avatar
    revision: propagate flag bits from tags to pointees · a7435286
    Junio C Hamano authored
    With the previous fix 895c5ba3 (revision: do not peel tags used in
    range notation, 2013-09-19), handle_revision_arg() that processes
    command line arguments for the "git log" family of commands no
    longer directly places the object pointed by the tag in the pending
    object array when it sees a tag object.  We used to place pointee
    there after copying the flag bits like UNINTERESTING and
    This change meant that any flag that is relevant to later history
    traversal must now be propagated to the pointed objects (most often
    these are commits) while starting the traversal, which is partly
    done by handle_commit() that is called from prepare_revision_walk().
    We did propagate UNINTERESTING, but did not do so for others, most
    notably SYMMETRIC_LEFT.  This caused "git log --left-right v1.0..."
    (where "v1.0" is a tag) to start losing the "leftness" from the
    commit the tag points at.
    Signed-off-by: default avatarJunio C Hamano <[email protected]>
t6000-rev-list-misc.sh 1.74 KB