Patch.from_diff


Description:

[ CCode ( has_construct_function = false ) ]
public Patch.from_diff (Diff diff, size_t idx) throws Error

The Patch is a newly created object contains the text diffs for the delta.

You have to call unref when you are done with it. You can use the patch object to loop over all the hunks and lines in the diff of the one delta.

Parameters:

diff

a Diff.

idx

index into diff list.

Returns:

a newly created Patch or null.