libgit2

git_diff_line_t

Version:

Line origin constants.

These values describe where a line came from and will be passed to the git_diff_line_cb when iterating over a diff. There are some special origin constants at the end that are used for the text output callbacks to demarcate lines that are actually part of the file or hunk headers.

Values

GIT_DIFF_LINE_CONTEXT
32
GIT_DIFF_LINE_ADDITION
43
GIT_DIFF_LINE_DELETION
45
GIT_DIFF_LINE_CONTEXT_EOFNL
61

Both files have no LF at end

GIT_DIFF_LINE_ADD_EOFNL
62

Old has no LF at end, new does

GIT_DIFF_LINE_DEL_EOFNL
60

Old has LF at end, new does not

GIT_DIFF_LINE_FILE_HDR
70
GIT_DIFF_LINE_HUNK_HDR
72
GIT_DIFF_LINE_BINARY
66

For "Binary files x and y differ"

Versions