Merge branch 'jc/revision-range-unpeel' into maint
"git rev-list --objects ^v1.0^ v1.0" gave v1.0 tag itself in the output, but "git rev-list --objects v1.0^..v1.0" did not. * jc/revision-range-unpeel: revision: do not peel tags used in range notation
This commit is contained in:
@ -48,4 +48,12 @@ test_expect_success 'rev-list --objects with pathspecs and copied files' '
|
||||
! grep one output
|
||||
'
|
||||
|
||||
test_expect_success 'rev-list A..B and rev-list ^A B are the same' '
|
||||
git commit --allow-empty -m another &&
|
||||
git tag -a -m "annotated" v1.0 &&
|
||||
git rev-list --objects ^v1.0^ v1.0 >expect &&
|
||||
git rev-list --objects v1.0^..v1.0 >actual &&
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user