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_data_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_ADD_EOFNL
10

Removed line w/o LF & added one with

GIT_DIFF_LINE_DEL_EOFNL
0

LF was removed at end of file

GIT_DIFF_LINE_FILE_HDR
70
GIT_DIFF_LINE_HUNK_HDR
72
GIT_DIFF_LINE_BINARY
66

Versions