The number of unchanged lines that define the boundary of a hunk (and to display before and after). Defaults to 3.
A combination of git_diff_option_t values above. Defaults to git_diff_option_t.GIT_DIFF_NORMAL
The abbreviation length to use when formatting object ids. Defaults to the value of 'core.abbrev' from the config, or 7 if unset.
Overrides the submodule ignore setting for all submodules in the diff.
The maximum number of unchanged lines between hunk boundaries before the hunks will be merged into one. Defaults to 0.
A size (in bytes) above which a blob will be marked as binary automatically; pass a negative value to disable. Defaults to 512MB.
The virtual "directory" prefix for new file names in hunk headers. Defaults to "b".
An optional callback function, notifying the consumer of changes to the diff as new deltas are added.
The virtual "directory" prefix for old file names in hunk headers. Default is "a".
An array of paths / fnmatch patterns to constrain diff. All paths are included by default.
The payload to pass to the callback functions.
An optional callback function, notifying the consumer of which files are being examined as the diff is generated.
version for the struct
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.