mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-05 21:13:49 +00:00
Duplicate all fields of a blame hunk
This commit is contained in:
parent
f6f7537cfd
commit
089297b2cd
@ -75,6 +75,11 @@ static git_blame_hunk* dup_hunk(git_blame_hunk *hunk)
|
||||
hunk->orig_path);
|
||||
git_oid_cpy(&newhunk->orig_commit_id, &hunk->orig_commit_id);
|
||||
git_oid_cpy(&newhunk->final_commit_id, &hunk->final_commit_id);
|
||||
newhunk->boundary = hunk->boundary;
|
||||
if (hunk->final_signature)
|
||||
newhunk->final_signature = git_signature_dup(hunk->final_signature);
|
||||
if (hunk->orig_signature)
|
||||
newhunk->orig_signature = git_signature_dup(hunk->orig_signature);
|
||||
return newhunk;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user