mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 03:06:13 +00:00
Add orig & final commit test.
This commit is contained in:
parent
a06474f81d
commit
b92b434f5a
@ -48,6 +48,9 @@ void check_blame_hunk_index(git_repository *repo, git_blame *blame, int idx,
|
||||
actual, expected);
|
||||
}
|
||||
cl_assert_equal_s(actual, expected);
|
||||
cl_assert_equal_i(git_oid_cmp(&hunk->final_commit_id, &hunk->orig_commit_id), 0);
|
||||
|
||||
|
||||
if (strcmp(hunk->orig_path, orig_path)) {
|
||||
hunk_message(idx, hunk, "has mismatched original path (got '%s', expected '%s')\n",
|
||||
hunk->orig_path, orig_path);
|
||||
|
Loading…
Reference in New Issue
Block a user