Struct git2::Patch [] [src]

pub struct Patch { /* fields omitted */ }

A structure representing the text changes in a single diff delta.

This is an opaque structure.

Methods

impl Patch
[src]

[src]

Return a Patch for one file in a Diff.

Returns Ok(None) for an unchanged or binary file.

[src]

Generate a Patch by diffing two blobs.

[src]

Generate a Patch by diffing a blob and a buffer.

[src]

Generate a Patch by diffing two buffers.

[src]

Get the DiffDelta associated with the Patch.

[src]

Get the number of hunks in the Patch.

[src]

Get the number of lines of context, additions, and deletions in the Patch.

[src]

Get a DiffHunk and its total line count from the Patch.

[src]

Get the number of lines in a hunk.

[src]

Get a DiffLine from a hunk of the Patch.

[src]

Get the size of a Patch's diff data in bytes.

[src]

Print the Patch to text via a callback.

[src]

Get the Patch text as a Buf.

Trait Implementations

impl Send for Patch
[src]

impl Drop for Patch
[src]

[src]

Executes the destructor for this type. Read more