Enum git2::DiffLineType [−][src]
pub enum DiffLineType {
Context,
Addition,
Deletion,
ContextEOFNL,
AddEOFNL,
DeleteEOFNL,
FileHeader,
HunkHeader,
Binary,
}
Expand description
Line origin constants.
Variants
Context
These values will be sent to git_diff_line_cb
along with the line
Addition
Deletion
ContextEOFNL
Both files have no LF at end
AddEOFNL
Old has no LF at end, new does
DeleteEOFNL
Old has LF at end, new does not
FileHeader
The following values will only be sent to a git_diff_line_cb
when
the content of a diff is being formatted through git_diff_print
.
HunkHeader
Binary
For “Binary files x and y differ”
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DiffLineType
impl Send for DiffLineType
impl Sync for DiffLineType
impl Unpin for DiffLineType
impl UnwindSafe for DiffLineType
Blanket Implementations
Mutably borrows from an owned value. Read more