libgit2

patch

Version:
Patches store the textual diffs in a delta

Objects

The diff patch is used to store all the text diffs for a delta

Functions

Get the repository associated with this patch

Return a patch for an entry in the diff list

Directly generate a patch from the difference between two blobs

Directly generate a patch from the difference between a blob and a buffer

Directly generate a patch from the difference between two buffers

Free a git_patch object

Get the delta associated with a patch data and you do not have to release it when you are done with it.

Get the number of hunks in a patch

Get line counts of each type in a patch

Get the information about a hunk in a patch

Get the number of lines in a hunk

Get data about a line in a hunk of a patch

Look up size of patch diff data in bytes

Serialize the patch to text via callback

Get the content of a patch as a single diff text