Commit graph

1881 commits

Author SHA1 Message Date
Geoff Greer
744e3c6c72 Run make with -r option (remove default rules). 2017-05-27 23:32:27 -07:00
Geoff Greer
9fdc38e41a Make other test rules phony. 2017-05-27 23:29:00 -07:00
Geoff Greer
13225fc8aa Merge pull request #1092 from uhlissuh/fix-ackmate-column-numbers
Fix ackmate column numbers for multi-line matches
2017-05-27 23:07:09 -07:00
Geoff Greer
ed0ece929b Merge pull request #1089 from ggreer/remove-agignore
Remove .agignore
2017-05-27 22:52:54 -07:00
Alissa Sobo
05bea43f55 Fix ackmate column numbers for multi-line matches
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2017-05-26 19:55:14 -07:00
Geoff Greer
c8cef90777 Remove .agignore. .ignore is the canonical file to read patterns from. 2017-05-25 19:40:16 -07:00
Geoff Greer
2dddcd223d Merge pull request #1083 from ackl/master
add support for jsp tag and fragment files
2017-05-14 21:49:02 -07:00
Andrew Low
ba9b069e8a fix list file types test for jsps 2017-05-10 23:40:47 +01:00
ackl
e598fcad32 add support for jsp tag and fragment files 2017-05-09 16:26:03 +01:00
Geoff Greer
69a6ebd35a Merge pull request #932 from mattscamp/accept_empty_query
Accept empty query
2017-05-07 20:17:39 -07:00
Geoff Greer
2be9f9003d Bump version to v1.0.3. 2017-05-02 23:35:21 -07:00
Geoff Greer
b72a669d7a Formatting. 2017-05-02 23:29:03 -07:00
Geoff Greer
04a373bafa Fix error in order of operations. 2017-05-02 23:28:54 -07:00
Geoff Greer
eeacac0e90 Merge branch 'master' of https://github.com/PRDeving/the_silver_searcher into PRDeving-master 2017-05-02 23:24:39 -07:00
Geoff Greer
d69d8cf4a2 Merge pull request #1051 from jefffederman/add-es6-to-js-file-type
Add es6 to js file type
2017-05-02 23:20:48 -07:00
Geoff Greer
7d8883c975 Merge pull request #1061 from jdeniau/patch-1
Add "twig" to languages
2017-05-02 23:20:25 -07:00
Geoff Greer
49ed6a4661 Merge pull request #1063 from bigardone/feature/elm-support
Added Elm filetype support
2017-05-02 23:20:04 -07:00
Geoff Greer
4b3f8310f4 Merge pull request #1068 from jschpp/Fix#1030
Added long option for filename pattern
2017-05-02 23:17:36 -07:00
PRDeving
2355b1c9fa Boyer moore algorithm ignore case refactor 2017-03-30 11:41:32 +02:00
Johannes Schoepp
99fa19f33e Added long option for filename pattern 2017-03-20 17:59:40 +01:00
Julien Deniau
27b360fa6e Add "twig" to languages 2017-03-20 16:21:22 +01:00
Ricardo García Vega
2b69965980 removed whitespace 2017-03-20 15:06:22 +01:00
Ricardo García Vega
b44355d403 added missing whitespace 2017-03-20 07:12:02 +01:00
Geoff Greer
88a5c0c2fe Merge pull request #1052 from jan-ruzicka/patch-1
stat test reduced to regular files and FIFOs
2017-03-11 22:02:28 -08:00
Ricardo García Vega
0e43b1722c added elm filetype support 2017-03-03 13:41:08 +01:00
Geoff Greer
da79caccf8 Merge pull request #1059 from realdeadfish/gradle-files-support
Support for gradle files
2017-02-23 23:58:55 -08:00
Thomas Keller
e15c6e112f Add .gradle files to the list of known files to search for when filtering for --groovy 2017-02-15 14:07:58 +01:00
Jan Ruzicka
902efac863 removed space characters at empty line 2017-02-02 07:52:22 -05:00
Jan Ruzicka
99a0169969 stat test reduced to regular files and FIFOs
Stat checks now allow searching only in regular files and FIFOs.
The stat test were duplicated to prevent TOCTOU.
related to issue #745
2017-02-01 23:47:40 -05:00
Jeff Federman
be6d07f51c Add .es6 to js file type 2017-02-01 13:34:21 -05:00
Jeff Federman
5b9dd1d532 Add .es6 to js file type 2017-02-01 13:32:33 -05:00
Geoff Greer
ee56182f61 Add script for performance-guided optimization. Ignore pgo files.
Thanks to @gwern & @FeepingCreature for showing this to me.
2017-01-28 12:56:06 -08:00
Geoff Greer
8639866dcc stat() files before open()ing them. This should help with issues such as opening /dev/watchdog (#745) 2017-01-26 21:04:46 -08:00
Geoff Greer
7110453f8c Only munmap() if mmap() failed. Thanks to @lpenz for noticing this bug. 2017-01-25 23:02:01 -08:00
Geoff Greer
221e4c2f07 Ignore fix: *.js now correctly ignores *.min.js. 2017-01-16 13:11:59 -08:00
Geoff Greer
4a0c638ea1 Revert "Fix for ignoring *.min.js"
This reverts commit fc94b00046.
2017-01-16 13:08:46 -08:00
Geoff Greer
0cbe479bd9 Merge branch 'brianpeiris-ignore-multiple-ext' 2017-01-16 13:02:07 -08:00
Geoff Greer
2f1700cbfa Better descriptions for these tests. 2017-01-16 13:01:48 -08:00
Geoff Greer
4640af7bcd Merge branch 'ignore-multiple-ext' of https://github.com/brianpeiris/the_silver_searcher into brianpeiris-ignore-multiple-ext 2017-01-16 12:42:08 -08:00
Geoff Greer
feca4775d7 Merge pull request #1048 from denilsonsa/patch-1
Fix for ignoring *.min.js
2017-01-16 12:33:54 -08:00
Denilson Sá Maia
fc94b00046 Fix for ignoring *.min.js
Problem:

* If `*.` is found at the beginning of the expression, the rest of the expression is considered an *extension*, and gets added to `ig->extensions`.
* When a file `jquery.min.js` is being processed, the silver searcher tries matching the extension `js` with the items from `ig->extensions`.
* Thus `min.js` will never match any extension.

Solution:

* Don't add a string to `ig->extensions` if that string still contains another `.`.

Performance impact:

* Unknown. I haven't measured.

Related issues:

* https://github.com/ggreer/the_silver_searcher/issues/710
* https://github.com/ggreer/the_silver_searcher/issues/755
* https://github.com/ggreer/the_silver_searcher/pull/834 (the failing test from that PR should hopefully be fixed with this PR)
2017-01-16 17:59:35 +01:00
Geoff Greer
5444df9612 Sort results in empty match test so that it passes on weird filesystems like XFS.
Fixes #1029.
2016-12-18 23:54:40 -08:00
Geoff Greer
0ff06435a4 Merge pull request #1026 from andreasstieger/openSUSE
Add install and source instructions for openSUSE and SLES
2016-12-17 23:55:50 -08:00
Geoff Greer
850e2b3887 Merge pull request #1002 from spencercrissman/master
Add support for log file type.
2016-12-17 23:55:17 -08:00
Geoff Greer
96fc48595c Merge pull request #1032 from aswild/pull/autogen-sh
Create autogen.sh script
2016-12-11 21:10:00 -08:00
Allen Wild
64c58a33a4 Create autogen.sh script
Many autotools-based projects have an autogen.sh script which handles
creating the configure script properly. The existing build.sh does this
but doesn't offer a way to just run autotools without configure/make.

Here I split the first part of build.sh into autogen.sh and then call
autogen.sh from build.sh. Using "set -e" cleans up the script a bit to
avoid a long chain of "&&"s
2016-12-11 17:42:47 -05:00
Geoff Greer
682ab865e1 Tag new release: v1.0.2. 2016-12-03 14:42:05 -08:00
Geoff Greer
4eb06b24db Update docs to explain mmap defaults. Regenerate manpage. 2016-12-03 13:40:44 -08:00
Geoff Greer
6eeb19512e mmap() is slower than read() on macos. Default to using read() on mac. 2016-12-03 13:39:27 -08:00
Geoff Greer
d3976d562e s/OS X/MacOS/g 2016-12-03 13:38:45 -08:00