Fossil SCM
Remove documentation of the --highlight option for the search command. The option was broken, anyway, and is now superseded by the global --color option and the FOSSIL_COLOR environment variable.
Commit
5331dfed414a672810077dc3ed384f58c34bbabd35d293cb97a84ab4811e0b7f
Parent
50e0931bc711da4…
1 file changed
+3
-5
+3
-5
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -582,22 +582,20 @@ | ||
| 582 | 582 | ** * all of the above (-a) |
| 583 | 583 | ** |
| 584 | 584 | ** Use options below to select the scope of the search. The |
| 585 | 585 | ** default is check-in comments only (-c). |
| 586 | 586 | ** |
| 587 | -** Output is colorized if writing to a TTY and if the NO_COLOR environment | |
| 588 | -** variable is not set. Use the "--highlight 0" option to disable colorization | |
| 589 | -** or use "--highlight 91" to force it on. Change the argument to --highlight | |
| 590 | -** to change the color. | |
| 587 | +** Output is colorized if writing to a TTY and neither the "--color" | |
| 588 | +** option is set to "never", nor the "NO_COLOR" environment variable | |
| 589 | +** is set to "1". | |
| 591 | 590 | ** |
| 592 | 591 | ** Options: |
| 593 | 592 | ** -a|--all Search everything |
| 594 | 593 | ** -c|--checkins Search checkin comments |
| 595 | 594 | ** --docs Search embedded documentation |
| 596 | 595 | ** --forum Search forum posts |
| 597 | 596 | ** -h|--bi-help Search built-in help |
| 598 | -** --highlight N Used VT100 color N for matching text. 0 means "off". | |
| 599 | 597 | ** -n|--limit N Limit output to N matches |
| 600 | 598 | ** --technotes Search tech notes |
| 601 | 599 | ** --tickets Search tickets |
| 602 | 600 | ** -W|--width WIDTH Set display width to WIDTH columns, 0 for |
| 603 | 601 | ** unlimited. Defaults to the terminal's width. |
| 604 | 602 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -582,22 +582,20 @@ | |
| 582 | ** * all of the above (-a) |
| 583 | ** |
| 584 | ** Use options below to select the scope of the search. The |
| 585 | ** default is check-in comments only (-c). |
| 586 | ** |
| 587 | ** Output is colorized if writing to a TTY and if the NO_COLOR environment |
| 588 | ** variable is not set. Use the "--highlight 0" option to disable colorization |
| 589 | ** or use "--highlight 91" to force it on. Change the argument to --highlight |
| 590 | ** to change the color. |
| 591 | ** |
| 592 | ** Options: |
| 593 | ** -a|--all Search everything |
| 594 | ** -c|--checkins Search checkin comments |
| 595 | ** --docs Search embedded documentation |
| 596 | ** --forum Search forum posts |
| 597 | ** -h|--bi-help Search built-in help |
| 598 | ** --highlight N Used VT100 color N for matching text. 0 means "off". |
| 599 | ** -n|--limit N Limit output to N matches |
| 600 | ** --technotes Search tech notes |
| 601 | ** --tickets Search tickets |
| 602 | ** -W|--width WIDTH Set display width to WIDTH columns, 0 for |
| 603 | ** unlimited. Defaults to the terminal's width. |
| 604 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -582,22 +582,20 @@ | |
| 582 | ** * all of the above (-a) |
| 583 | ** |
| 584 | ** Use options below to select the scope of the search. The |
| 585 | ** default is check-in comments only (-c). |
| 586 | ** |
| 587 | ** Output is colorized if writing to a TTY and neither the "--color" |
| 588 | ** option is set to "never", nor the "NO_COLOR" environment variable |
| 589 | ** is set to "1". |
| 590 | ** |
| 591 | ** Options: |
| 592 | ** -a|--all Search everything |
| 593 | ** -c|--checkins Search checkin comments |
| 594 | ** --docs Search embedded documentation |
| 595 | ** --forum Search forum posts |
| 596 | ** -h|--bi-help Search built-in help |
| 597 | ** -n|--limit N Limit output to N matches |
| 598 | ** --technotes Search tech notes |
| 599 | ** --tickets Search tickets |
| 600 | ** -W|--width WIDTH Set display width to WIDTH columns, 0 for |
| 601 | ** unlimited. Defaults to the terminal's width. |
| 602 |