libgit2

git_diff_line

Version:

Signature

typedef struct git_diff_line { char origin int old_lineno int new_lineno int num_lines size_t content_len git_off_t content_offset const char *content };

Members

char
origin

A git_diff_line_t value

int
old_lineno

Line number in old file or -1 for added line

int
new_lineno

Line number in new file or -1 for deleted line

int
num_lines

Number of newline characters in content

size_t
content_len

Number of bytes of data

content_offset

Offset in the original file to the content

const char *
content

Pointer to diff text, not NUL-byte terminated

Parameter To

Versions