diff options
author | 2021-03-10 12:07:19 -0500 | |
---|---|---|
committer | 2021-03-10 14:14:19 -0800 | |
commit | 6d875d19fd7346f4a6dc47d2a1363db91e9643d5 (patch) | |
tree | e15c518d68f378e2581c45d43a493f0460931425 /Documentation/RelNotes/2.17.6.txt | |
parent | Git 2.30.2 (diff) | |
download | tgif-6d875d19fd7346f4a6dc47d2a1363db91e9643d5.tar.xz |
t7003: test ref rewriting explicitly
After it has rewritten all of the commits, filter-branch will then
rewrite each of the input refs based on the resulting map of old/new
commits. But we don't have any explicit test coverage of this code.
Let's make sure we are covering each of those cases:
- deleting a ref when all of its commits were pruned
- rewriting a ref based on the mapping (this happens throughout the
script, but let's make sure we generate the correct messages)
- rewriting a ref whose tip was excluded, in which case we rewrite to
the nearest ancestor. Note in this case that we still insist that no
"warning" line is present (even though it looks like we'd trigger
the "... was rewritten into multiple commits" one). See the next
commit for more details.
Note these all pass currently, but the latter two will fail when run
with GIT_TEST_DEFAULT_HASH=sha256.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/2.17.6.txt')
0 files changed, 0 insertions, 0 deletions