Commit ce2a79b
committed
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: Cursor1 parent 551a06c commit ce2a79b
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
960 | | - | |
| 959 | + | |
961 | 960 | | |
962 | 961 | | |
963 | 962 | | |
| |||
2100 | 2099 | | |
2101 | 2100 | | |
2102 | 2101 | | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
2108 | | - | |
2109 | 2102 | | |
2110 | 2103 | | |
2111 | 2104 | | |
| |||
2409 | 2402 | | |
2410 | 2403 | | |
2411 | 2404 | | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
2412 | 2422 | | |
2413 | 2423 | | |
2414 | 2424 | | |
| |||
0 commit comments