Commit graph

1749 commits

Author SHA1 Message Date
Geoff Greer
4304379038 format.sh reformat 2016-06-23 01:26:40 -07:00
Geoff Greer
fa35a7f86e Fix styling. Include decompress.h in search.c, not .h. Remove duplicated typedef. 2016-06-23 01:25:32 -07:00
Geoff Greer
f6170cc557 Fix a race condition by passing a pointer to search results around instead of the potentially-reused stack variable. More progress on search_stream with context. 2016-06-23 01:23:43 -07:00
Geoff Greer
1987c8c8bd Progress on context pipe 2016-06-23 01:23:43 -07:00
Geoff Greer
6aa9c80e25 Better order of print functions. 2016-06-23 01:23:43 -07:00
Geoff Greer
614afe2cab Separate searching from printing. Searching now returns a results struct, which print_results() then prints. 2016-06-23 01:23:43 -07:00
Geoff Greer
119c9c1111 Add binary type instead of relying on special numbers. Add search_results_t. 2016-06-23 01:23:43 -07:00
Geoff Greer
d19e6f8498 More test failing goodness. 2016-06-23 01:23:43 -07:00
Geoff Greer
21291ffbe3 Add failing test cases. 2016-06-23 01:23:43 -07:00
Geoff Greer
a790a06583 Update date in NOTICE 2016-06-23 01:23:10 -07:00
Geoff Greer
c2a8761afd Travis CI doesn't seem to obey this directive, so remove it. Looks like we're stuck on 12.04 :( 2016-06-23 01:21:06 -07:00
Geoff Greer
9ada47b125 Merge pull request #922 from ggreer/travis_ci
Get Travis-CI tests working again
2016-06-23 01:17:04 -07:00
Geoff Greer
23b9d8ecfd Clean up steps to download and extract llvm+clang. 2016-06-23 01:13:39 -07:00
Geoff Greer
52b8d5b361 format.sh reformat using clang-format 3.8 2016-06-23 00:41:04 -07:00
Geoff Greer
239234d2a7 Force Travis-CI to use the downloaded version of clang-format, not the one that ships with the OS. 2016-06-23 00:40:30 -07:00
Geoff Greer
8e40f20b1f Use llvm 3.8 2016-06-23 00:34:28 -07:00
Geoff Greer
0c58fb4f66 When detecting clang-format, try v3.8. 2016-06-23 00:15:57 -07:00
Geoff Greer
d4f736d8b0 Use LLVM 3.6 2016-06-23 00:15:32 -07:00
Geoff Greer
51121a8f5e Add --noaffinity to tests so they don't fail in Travic CI containers. 2016-06-23 00:10:46 -07:00
Geoff Greer
18f9833d26 Get Travis-CI working again. LLVM took down their apt repo. :( 2016-06-22 23:43:22 -07:00
Geoff Greer
1a39e7d2fd Merge pull request #913 from mizuno-as/remove_shebang
remove shebang from bash completion script
2016-06-22 12:48:04 -07:00
Geoff Greer
17a683d320 Merge pull request #781 from danielshahaf/word-regexp-alternates
Fix --word-regexp not applying to alternates
2016-06-06 12:01:03 -07:00
Hajime MIZUNO
ea4f372dcf remove shebang from bash completion script 2016-05-29 13:19:12 +09:00
Geoff Greer
630125a924 Fix another Coverity error: key_len + 1 could overflow. So just bail if someone has an absurdly long key in their svn dir-prop-base. 2016-05-16 15:15:27 -07:00
Geoff Greer
81e22e2756 Check return value of fseek() and bail if it fails. 2016-05-16 14:48:49 -07:00
Geoff Greer
9b623bc968 Fix minor issue found by Coverity: ag -v . leaked 16 bytes of memory. Thanks goes to Conrad Meyer from FreeBSD for the Coverity invite. 2016-05-16 14:26:48 -07:00
Geoff Greer
878751003c Tag new release: v0.32.0. 2016-05-15 22:15:26 -07:00
Geoff Greer
0c55a13514 Merge pull request #894 from cemeyer/fbsd-filetype.t
Fix #893 - Use [ \t] instead of \s (BSD grep)
2016-05-08 23:31:47 -07:00
Conrad Meyer
b8f9c68c22 Fix #893 - Use [ \t] instead of \s (BSD grep) 2016-05-07 15:12:56 -07:00
Geoff Greer
9fc8924c0b Merge pull request #819 from martinlindhe/master
--js: recognize .vue components from vue.js
2016-05-01 23:46:37 -07:00
Geoff Greer
00ffeb36a2 Merge pull request #878 from eksperimental/elixir_extensions
File Types: Add eex under Elixir
2016-04-28 20:15:56 -07:00
Geoff Greer
2260fe0103 Merge pull request #886 from lgarron/patch-1
Add `.fish` to shell extensions.
2016-04-28 20:15:32 -07:00
Geoff Greer
c7869c21e5 Merge pull request #887 from sach1t/master
Fix potential integer overflow in binary search
2016-04-28 20:14:48 -07:00
Lucas Garron
80a7d1a0da Add .fish to shell extensions.
`.fish` is the file extension for the Fish shell: https://fishshell.com/
2016-04-26 11:20:34 -07:00
sach1t
7d3e02f452 Fix potential overflow 2016-04-26 01:47:03 -04:00
Geoff Greer
de7ee68c66 Merge pull request #867 from me-and/bad-echo
Use printf in place of echo in tests
2016-04-13 21:43:24 -07:00
Geoff Greer
c6a84e2b38 Merge pull request #877 from me-and/cygwin-install
Add install instructions for Cygwin
2016-04-12 12:57:06 -07:00
eksperimental
c5890a42aa File Types: Add eex under Elixir 2016-04-07 23:46:29 +07:00
Geoff Greer
ed3026cb43 Merge pull request #865 from me-and/not-one-device
Skip one_device.t if /dev/shm isn't a mountpoint
2016-04-04 23:50:17 -07:00
Geoff Greer
f05870c95d Merge pull request #846 from jschpp/fix_845
Fix #845
2016-03-27 23:54:53 -07:00
Adam Dinwoodie
be8dd4ee4a Make one_device.t strictly POSIX compliant 2016-03-17 13:41:05 +00:00
Adam Dinwoodie
2bf6ee0ab7 Skip one_device.t if /dev/shm isn't a mountpoint
If /dev/shm isn't a separate device to its parent directory, skip using
it to test limiting a search to a single device.  If /dev/shm isn't a
mountpoint there's no obvious alternative for checking Ag doesn't
descend into one, so just skip the test entirely.

Fixes #864.
2016-03-15 13:19:55 +00:00
Adam Dinwoodie
26088a18ab Add install instructions for Cygwin 2016-03-15 11:56:20 +00:00
Adam Dinwoodie
1f2d79ebee Use printf in place of echo in tests
The behaviour of echo is inconsistent between implementations, in
particular regarding whether it expands escapes like `\n`.  Use printf
consistently in test scripts to avoid test failures from inconsistent
echo behaviour.

Fixes #866.
2016-03-15 03:42:19 +00:00
Geoff Greer
8cc74e04ea Merge branch 'master' of github.com:ggreer/the_silver_searcher 2016-03-13 23:40:21 -07:00
Ben Albrecht
835fb80a98 Add Chapel Language 2016-03-13 23:39:33 -07:00
Geoff Greer
9815ae5066 Merge pull request #860 from erg/factor-support
Add support for .factor files.
2016-03-12 23:23:50 -08:00
Geoff Greer
7aa189456f Move variable declarations closer to their first use in filename_filter(). Compilers should be more than smart enough to optimize this, but the code is a little easier to follow as well. Fixes #856. 2016-03-11 13:57:54 -08:00
Geoff Greer
9adb7d1b9c Fall back to default core exclude location (~/.config/git/ignore) if git config's core.excludesfile isn't set. Fixes #796. 2016-03-11 13:45:26 -08:00
Doug Coleman
7466509320 Add support for .factor files.
https://factorcode.org
2016-03-05 13:10:17 -08:00