summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-01-11 17:45:51 -0600
committerAndrew Gallant <jamslam@gmail.com>2018-01-11 18:45:51 -0500
commit58bdc366ec292653124699940190432ae30a6732 (patch)
treeb9f57e7d3502bf23452a0c0445edd593c628f402 /doc
parent34c0b1bc709f74678d7c1a24046c26571c25eaec (diff)
printer: add --passthru flag
The --passthru flag causes ripgrep to print every line, even if the line does not contain a match. This is a response to the common pattern of `^|foo` to match every line, while still highlighting things like `foo`. Fixes #740
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.18
-rw-r--r--doc/rg.1.md4
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index c098410b..d8272e74 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -435,6 +435,14 @@ such part on a separate output line.
.RS
.RE
.TP
+.B \-\-passthru, \-\-passthrough
+Show both matching and non\-matching lines.
+This is equivalent to adding ^ to the list of search patterns.
+This option overrides \-\-count and cannot be used with
+\-\-only\-matching or \-\-replace.
+.RS
+.RE
+.TP
.B \-\-path\-separator \f[I]SEPARATOR\f[]
The path separator to use when printing file paths.
This defaults to your platform\[aq]s path separator, which is / on Unix
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 2cd7059e..93b401ab 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -288,6 +288,10 @@ Project home page: https://github.com/BurntSushi/ripgrep
: Print only the matched (non-empty) parts of a matching line, with each such
part on a separate output line.
+--passthru, --passthrough
+: Show both matching and non-matching lines. This option cannot be used with
+ --only-matching or --replace.
+
--path-separator *SEPARATOR*
: The path separator to use when printing file paths. This defaults to your
platform's path separator, which is / on Unix and \\ on Windows. This flag is