You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc: improve grepdiff documentation with better examples and organization
Fix several issues with grepdiff documentation in patchutils.xml:
* Move misplaced grepdiff example from filterdiff Examples section to
grepdiff Examples section. The advanced example showing
--output-matching=hunk with --as-numbered-lines was incorrectly
placed in filterdiff documentation.
* Clean up grepdiff Description section by removing embedded example
that used a complex, inefficient pipeline (grepdiff | xargs filterdiff).
Keep the section focused on conceptual explanation.
* Completely rewrite grepdiff Examples section with comprehensive,
progressive examples:
- Start with filename-only output showing why it's useful for
quick patch scanning
- Show --output-matching=hunk for seeing actual matching hunks
- Show --output-matching=file for complete file diffs
- Include advanced usage with line numbering options
- Preserve Git format example with explanatory notes
* Add explanatory text for each example showing when and why to use
each mode, making grepdiff's capabilities clearer
These changes better showcase grepdiff as a powerful standalone tool
rather than just a helper for filterdiff, with clear examples of its
different output modes and proper organization of documentation.
Assisted-by: Cursor
0 commit comments