Commit graph

1405 commits

Author SHA1 Message Date
Geoff Greer
f1afe92694 Simpler ifdefs for thread affinity. 2014-12-24 13:46:52 -08:00
Geoff Greer
e762c44d69 Set processor affinity for worker threads. This improves performance by 3-5% on systems that support it. 2014-12-21 20:23:10 -08:00
Geoff Greer
ff7891e581 Merge pull request #562 from poxu/max_path_variable_typo
Change constant name from MAX_PATH to _MAX_PATH so the code could be com...
2014-12-20 13:02:34 -08:00
poxu
bcc73fc0c2 Change constant name from MAX_PATH to _MAX_PATH so the code could be compiled 2014-12-18 17:10:19 +03:00
Geoff Greer
67033976c0 Merge pull request #537 from blueyed/fix-git-excludesfile-expand
Expand core.excludesfile setting from "git config"
2014-12-14 23:47:44 -08:00
Geoff Greer
14c3a51fb3 Merge pull request #539 from kevinxucs/max-depth
Allow unlimited depth.
2014-12-14 23:45:53 -08:00
Geoff Greer
0866bf9f0e Merge branch 'jpouellet-dash-F'
Conflicts:
	src/options.c
2014-12-13 23:02:36 -08:00
Geoff Greer
18da8e94f7 Merge branch 'dash-F' of git://github.com/jpouellet/the_silver_searcher into jpouellet-dash-F
Conflicts:
	src/options.c
2014-12-13 23:00:40 -08:00
Geoff Greer
b42819caba Merge pull request #548 from blueyed/debug-fix-args
Fix arguments to `log_debug` in `path_ignore_search`
2014-12-13 22:49:47 -08:00
Geoff Greer
927814d3c2 Merge pull request #552 from gurgeous/master
Support for -o (--only-matching), which prints only the matching part of the line
2014-12-06 08:28:15 -08:00
amd
6cf8bf847b Support for -o (--only-matching), which prints only the matching part of
each line. This is based on the earlier pull request from @JSmith-BitFlipper.

Fixes #231, #400 and #454.
2014-12-06 07:24:42 -08:00
Geoff Greer
5da7354033 Clean up count tests. Call setup, but use a different alias for ag. 2014-12-04 18:17:56 -08:00
Geoff Greer
433042d052 Merge pull request #549 from ChrisPickard/master
Removed duplicate word from README
2014-12-04 11:33:40 -08:00
Geoff Greer
1da0300190 Merge pull request #550 from blueyed/tests-no-newline-with-echo
Some shells (e.g. bash) do not expand '\n' to a newline
2014-12-02 16:08:42 -08:00
Geoff Greer
987d99bc9a Merge pull request #546 from blueyed/make-test-depend-ag
Make test targets depend on 'ag'
2014-12-02 16:07:16 -08:00
Chris Pickard
ee6756b16f Removed duplicate word from README 2014-12-02 12:35:06 -05:00
Daniel Hahler
def6728658 Some shells (e.g. bash) do not expand '\n' to a newline
Use two separate `echo` statements. While `printf` would also work, it
seems better to stick with `echo` here.

Ref: https://github.com/ggreer/the_silver_searcher/pull/542#issuecomment-65269731
2014-12-02 18:34:32 +01:00
Daniel Hahler
8c958b5418 Fix arguments to log_debug in path_ignore_search 2014-12-02 18:00:25 +01:00
Daniel Hahler
04d9016361 Make test targets depend on 'ag'
Otherwise only config.status etc get refreshed, but not the `ag` binary
itself.
2014-12-02 17:06:47 +01:00
Geoff Greer
ed4015b55a Document --count. 2014-11-29 18:28:50 -08:00
Geoff Greer
a1cf471a89 Yet another passing test case. 2014-11-29 17:54:49 -08:00
Geoff Greer
4dbef3d38b Fix compiler warning with signed vs unsigned comparison. 2014-11-29 17:20:59 -08:00
Geoff Greer
44a3814ce1 Add basic passing test for --max-count. 2014-11-29 17:17:02 -08:00
Geoff Greer
d5f423bb43 Update documentation to describe correct behavior for --max-count 2014-11-29 13:16:02 -08:00
Geoff Greer
59df36e1a7 Default max-count to infinite. This fixes #516. 2014-11-29 13:15:37 -08:00
Geoff Greer
c5d9cba631 Merge pull request #544 from joshaw/master
Add ag.exe to ignore compiled binary from windows
2014-11-27 11:11:05 -08:00
Josh Wainwright
a2ed9e1a24 Add ag.exe to ignore compiled binary from windows 2014-11-27 17:28:07 +00:00
Kaiwen Xu
5ea1168a37 Allow unlimited depth.
Add option --depth=-1 for unlimited search depth.
2014-11-25 00:58:29 -05:00
Geoff Greer
8c273bb4c0 Merge pull request #470 from ryanpcmcquen/patch-1
add slackware build method
2014-11-24 19:33:10 -08:00
Ryan P.C. McQuen
b89b149e13 add slackware install method
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
2014-11-24 16:55:30 -08:00
Daniel Hahler
2fb637296f Use --path with git config to get the resolved excludesfile
Fixes https://github.com/ggreer/the_silver_searcher/issues/159
2014-11-23 12:29:03 +01:00
Daniel Hahler
bc51ed0d13 Improve logging for skipping ignore file and Git excludesfile 2014-11-23 12:25:20 +01:00
Geoff Greer
44b6880a31 Merge pull request #533 from Leonidas-from-XIV/feature/more-ocaml-extensions
Search in ocamllex/ocamlyacc/menhir source files
2014-11-23 00:35:35 -08:00
Geoff Greer
c0a7f846f6 Fix #515. Order of options with -G and -S no longer matter. 2014-11-22 19:57:27 -08:00
Geoff Greer
33b22dd4f8 Merge pull request #532 from blueyed/fix-exitcode-option-g
Fix exit code for `ag -g`
2014-11-22 19:18:42 -08:00
Jean-Philippe Ouellet
0ce410943d add bash completion for -F/--fixed-strings 2014-11-22 20:52:40 -05:00
Jean-Philippe Ouellet
c5a5a13b6f document -F/--fixed-strings 2014-11-22 20:52:23 -05:00
Jean-Philippe Ouellet
c984ca77a7 add -F/--fixed-strings as alias for -Q/--literal
-F is compatible with POSIX grep(1)
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html

--fixed-strings is compatible with GNU grep(1)
https://www.gnu.org/software/grep/manual/grep.html#grep-Programs

This is the most annoying (to me) muscle-memory difference from grep.
2014-11-22 20:52:04 -05:00
Marek Kubica
8ca215fe7c Search in ocamllex/ocamlyacc/menhir source files 2014-11-21 13:59:25 +01:00
Daniel Hahler
4dba2c18eb Fix exit code for ag -g
Return -1 only for no matches, 0 if files have been found.
2014-11-21 12:04:00 +01:00
Geoff Greer
303dfe245a Merge pull request #527 from hamstergene/fix_bash_completion_524
fixed error in bash completion (issue #524)
2014-11-18 17:38:27 -08:00
Eugene Homyakov
8c886872cb fixed error in bash completion (issue #524) 2014-11-17 12:55:20 +03:00
Geoff Greer
cefed3635e Use markdown image. Add invitation to pair. 2014-11-16 12:36:24 -08:00
Geoff Greer
45b670b9f6 New release: 0.27.0 2014-11-14 21:22:52 -08:00
Geoff Greer
41189b6c3a More README cleanup. 2014-11-14 21:18:28 -08:00
Geoff Greer
a612890de0 Fix indentation. 2014-11-14 20:59:59 -08:00
Geoff Greer
a428b7a040 Mega-update README. Add/update installation/build instructions for many platforms. Clean up other help bits. Update example benchmark. Link to speed graphs. 2014-11-14 20:58:04 -08:00
Geoff Greer
7eb82921a2 Fix dumb test. 2014-11-14 20:17:20 -08:00
Geoff Greer
9af11ee106 Merge pull request #526 from ggreer/count
Add --count
2014-11-14 18:58:03 -08:00
Geoff Greer
ce68e51c71 Add --count/-c to count matches. This also counts on streams, but it's not very useful yet since lines with no matches don't print a zero. Anyway, it fixes #476. 2014-11-14 18:53:56 -08:00