diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-29 15:41:53 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-30 13:32:47 -0500 |
commit | 50887e521fc22e2eefa473bd31a0990534bacfbe (patch) | |
tree | 23db0acb07773bc338860b798fa4c03740d539ce /include/git2/diff.h | |
parent | f85a69aed58d44ea9a2ec1788c82646b4ae01acc (diff) | |
download | libgit2-50887e521fc22e2eefa473bd31a0990534bacfbe.tar.gz |
diff: support regexp ignoresethomson/diff_regexp_ignore
Emulate git's `-I` (`--ignore-matching-lines`) with a regular
expression.
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r-- | include/git2/diff.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index 9424ffd06..334614680 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -444,6 +444,13 @@ typedef struct { * Defaults to "b". */ const char *new_prefix; + + /** + * Ignore lines matching the given regular expression(s); both + * the preimage and postimage lines must match. + */ + const char **ignore_regexp; + size_t ignore_regexp_count; } git_diff_options; /* The current version of the diff options structure */ |