diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-11-02 22:17:43 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-02 22:17:44 +0100 |
commit | 1ae0949a036864de1f5caa7b375b875284d1c69e (patch) | |
tree | 800b0226c23ed0596f38507d4d4ad8818307a94e /Documentation/diff-options.txt | |
parent | Merge branch 'jt/apply-reverse-twice' (diff) | |
parent | diff: add -I<regex> that ignores matching changes (diff) | |
download | git-1ae0949a036864de1f5caa7b375b875284d1c69e.tar.xz git-1ae0949a036864de1f5caa7b375b875284d1c69e.zip |
Merge branch 'mk/diff-ignore-regex'
"git diff" family of commands learned the "-I<regex>" option to
ignore hunks whose changed lines all match the given pattern.
* mk/diff-ignore-regex:
diff: add -I<regex> that ignores matching changes
merge-base, xdiff: zero out xpparam_t structures
Diffstat (limited to 'Documentation/diff-options.txt')
-rw-r--r-- | Documentation/diff-options.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 573fb9bb71..ee52b65e46 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -687,6 +687,11 @@ endif::git-format-patch[] --ignore-blank-lines:: Ignore changes whose lines are all blank. +-I<regex>:: +--ignore-matching-lines=<regex>:: + Ignore changes whose all lines match <regex>. This option may + be specified more than once. + --inter-hunk-context=<lines>:: Show the context between diff hunks, up to the specified number of lines, thereby fusing hunks that are close to each other. |