Skip to content

Commit 48185bc

Browse files
committed
doc: describe -L pickaxe scoping for -S and -G
This series documents the -L stat formats as range-scoped and scopes -G to the tracked range, but -S still matches the whole file. Spell out the distinction so -S's whole-file behavior is not mistaken for the range-scoped behavior of -G and the formats listed alongside it. Signed-off-by: Michael Montalbo <mmontalbo@gmail.com>
1 parent 8db5a42 commit 48185bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Documentation/line-range-options.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
+
2121
Patch formatting options such as `--word-diff`, `--color-moved`,
2222
`--no-prefix`, and whitespace options (`-w`, `-b`) are supported,
23-
as are pickaxe options (`-S`, `-G`) and `--diff-filter`.
23+
as are pickaxe options (`-S`, `-G`) and `--diff-filter`. `-G` is
24+
scoped to the tracked range; `-S` is still evaluated over the whole
25+
file, so an `-S` query may select a commit for a change outside the
26+
range.
2427
+
2528
include::line-range-format.adoc[]

0 commit comments

Comments
 (0)