diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-24 18:44:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-25 14:09:17 -0700 |
commit | 9f0be821238fcae33f33d736d2118b4ffdcebd0c (patch) | |
tree | d88e5bf8408104d8ed270e64459e9367f8fcfa39 /oid-array.c | |
parent | Sixteenth batch (diff) | |
download | tgif-9f0be821238fcae33f33d736d2118b4ffdcebd0c.tar.xz |
t1506: rev-parse A..B and A...B
Because these constructs can be used to parse user input to be
passed to rev-list --objects, e.g.
range=$(git rev-parse v1.0..v2.0) &&
git rev-list --objects $range | git pack-objects --stdin
the endpoints (v1.0 and v2.0 in the example) are shown without
peeling them to underlying commits, even when they are annotated
tags. Make sure it stays that way.
While at it, ensure "rev-parse A...B" also keeps the endpoints A and
B unpeeled, even though the negative side (i.e. the merge-base
between A and B) has to become a commit.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'oid-array.c')
0 files changed, 0 insertions, 0 deletions