git_diff_merge

Merge one diff into another.

This merges items from the "from" list into the "onto" list. The resulting diff will have all items that appear in either list. If an item appears in both lists, then it will be "merged" to appear as if the old version was from the "onto" list and the new version is from the "from" list (with the exception that if the item has a pending DELETE in the middle, then it will show as deleted).

extern (C) nothrow @nogc
int
git_diff_merge
(,
const(.git_diff)* from
)

Parameters

onto .git_diff*

Diff to merge into.

from const(.git_diff)*

Diff to merge.

Meta