diff --git a/doc/patchutils.xml b/doc/patchutils.xml index 7d46c788..b561852c 100644 --- a/doc/patchutils.xml +++ b/doc/patchutils.xml @@ -956,8 +956,7 @@ patch.file]]> For CI/CD systems that need line numbers matching the original diff context (useful for error reporting), use the original-* variants: - + Filterdiff can also be used to convert between unified and context format diffs: @@ -2100,12 +2099,6 @@ This is the same as gitdiff but uses git show instead of git diff. are used instead of POSIX regular expressions, and the option has no effect since PCRE already supports extended regular expression features by default. - For example, to see the patches in - my.patch which contain the regular - expression pf_gfp_mask, use: - - You can use unified, context, and Git format diffs with this program. Git format includes support for binary files, file renames, permission mode changes, and other Git-specific @@ -2409,6 +2402,23 @@ This is the same as gitdiff but uses git show instead of git diff. Examples + To quickly identify which files in a large patch contain + memory allocation changes (useful for code review): + + + This shows only the filenames, giving you a quick overview + without being overwhelmed by diff content. + To see the actual hunks containing the pattern: + + + To see complete file diffs for files containing the pattern: + + + For CI/CD systems that need line numbers matching the original + diff context (useful for error reporting): + + Git format diffs are fully supported. For example, to find files in a git patch that contain changes to malloc calls: