Struct git2::DiffLine [] [src]

pub struct DiffLine<'a> { /* fields omitted */ }

Structure describing a line (or data span) of a diff.

Methods

impl<'a> DiffLine<'a>
[src]

[src]

Line number in old file or None for added line

[src]

Line number in new file or None for deleted line

[src]

Number of newline characters in content

[src]

Offset in the original file to the content

[src]

Content of this line as bytes.

[src]

Sigil showing the origin of this DiffLine.

  • - Line context
  • + - Line addition
  • - - Line deletion
  • = - Context (End of file)
  • > - Add (End of file)
  • < - Remove (End of file)
  • F - File header
  • H - Hunk header
  • B - Line binary