libgit2

git_diff_options

Version:

Structure describing options about how the diff should be executed.

Setting all values of the structure to zero will yield the default values. Similarly, passing NULL for the options structure will give the defaults. The default values are marked below.

Signature

typedef struct git_diff_options { uint32_t flags uint16_t context_lines uint16_t interhunk_lines char *old_prefix char *new_prefix git_strarray pathspec };

Members

uint32_t
flags

defaults to GIT_DIFF_NORMAL

uint16_t
context_lines

defaults to 3

uint16_t
interhunk_lines

defaults to 3

char *
old_prefix

defaults to "a"

char *
new_prefix

defaults to "b"

pathspec

defaults to show all paths

Parameter To

Versions