summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-01-06 22:43:59 -0500
committerAndrew Gallant <jamslam@gmail.com>2017-01-06 22:43:59 -0500
commitb65a8c353b1d214f2b26be61b715059727ce94bb (patch)
tree08455fe88d1dc813c38261f1a633b0a31b67fd5d /doc
parent95cea77625f978a21b1d923e54d13f9217f0ef30 (diff)
Add --sort-files flag.
When used, parallelism is disabled but the results are sorted by file path. Closes #263
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.17
-rw-r--r--doc/rg.1.md4
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index 0dfd3f07..6ce5bd65 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -355,6 +355,13 @@ This is overridden by either \-\-case\-sensitive or \-\-ignore\-case.
.RS
.RE
.TP
+.B \-\-sort\-files
+Sort results by file path.
+Note that this currently disables all parallelism and runs search in a
+single thread.
+.RS
+.RE
+.TP
.B \-j, \-\-threads \f[I]ARG\f[]
The number of threads to use.
0 means use the number of logical CPUs (capped at 6).
diff --git a/doc/rg.1.md b/doc/rg.1.md
index b6ed8808..748e5aa5 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -239,6 +239,10 @@ Project home page: https://github.com/BurntSushi/ripgrep
Search case sensitively otherwise. This is overridden by either
--case-sensitive or --ignore-case.
+--sort-files
+: Sort results by file path. Note that this currently
+ disables all parallelism and runs search in a single thread.
+
-j, --threads *ARG*
: The number of threads to use. 0 means use the number of logical CPUs
(capped at 6). [default: 0]