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]

Line number in old file or None for added line

Line number in new file or None for deleted line

Number of newline characters in content

Offset in the original file to the content

Content of this line as bytes.

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

Auto Trait Implementations

impl<'a> !Send for DiffLine<'a>

impl<'a> !Sync for DiffLine<'a>