On Thu, May 11, 2017 at 11:09 AM, Jeff King <p...@peff.net> wrote:
> On Thu, May 11, 2017 at 03:54:37AM -0400, Jeff King wrote:
>
>> On Thu, May 11, 2017 at 09:49:09AM +0200, Ævar Arnfjörð Bjarmason wrote:
>>
>> > > I don't like this because it
this is a test to see whether Git
suffers from the issue noted in an article Russ Cox posted today about
common bugs in various glob implementations:
https://research.swtch.com/glob
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/perf/p0100-globbing.s
Fixes a brainfart in v3. I thought I'd fixed that subshell cd issue,
but turns out I didn't, actually fix that.
Ævar Arnfjörð Bjarmason (2):
perf: add function to setup a fresh test repo
perf: add test showing exponential growth in path globbing
t/perf/README| 1 +
t/perf/p0100
ions or files, which I'm about to add in a
subsequent commit.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/perf/README | 1 +
t/perf/perf-lib.sh | 19 +++
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/t/perf/README b/t/perf/README
index
test of grep -G, -E
and -P", 2017-04-19) for details on the machine the above test run was
executed on.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/perf/p7821-grep-engines-fixed.sh | 27 +++
1 file changed, 27 insertions(+)
create mode 10075
he initial introduction of
git-grep in commit 5010cb5fcc ("built-in "git grep"", 2006-04-30).
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/grep.c b/grep.c
index 59ae7809f2..bf6c249
-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t5300-pack-object.sh | 34 ++
1 file changed, 34 insertions(+)
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index 43a672c345..1629fa80b0 100755
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack
code and the USE_LIBPCRE Makefile argument was added in commit
63e7e9d8b6 ("git-grep: Learn PCRE", 2011-05-09). At the time there was
no indication that the PCRE project would release an entirely new &
incompatible API around 3 years later.
Signed-off-by: Ævar Arnfjörð Bjarmason
, 2017-04-07) elaborates on the motivations
behind this change.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 52 ++--
grep.h | 8
2 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/grep.c b/grep.c
index
On Thu, May 11, 2017 at 10:40 PM, Stefan Beller <sbel...@google.com> wrote:
> On Thu, May 11, 2017 at 1:08 PM, Brandon Williams <bmw...@google.com> wrote:
>> On 05/11, Ævar Arnfjörð Bjarmason wrote:
>>> Add a die(...) to a default case for the switch statement sele
On Thu, May 11, 2017 at 10:17 PM, Brandon Williams <bmw...@google.com> wrote:
> On 05/11, Ævar Arnfjörð Bjarmason wrote:
>> Add a test for the warning that's emitted when --threads or
>> pack.threads is provided under NO_PTHREADS=YesPlease. This uses the
>>
.
1. ("grep: factor test for \0 in grep patterns into a function",
2017-05-08)
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 24
t/t7008-grep-binary.sh | 74 ++
2 files ch
On Thu, May 11, 2017 at 8:31 PM, Brandon Williams wrote:
> On 05/11, Ęvar Arnfjörš Bjarmason wrote:
>> Change a non-ASCII case-insensitive test case to stop using --debug,
>> and instead simply test for the expected results.
>>
>> The test coverage remains the same with this
2107
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Makefile | 1 +
compat/pcre2/get-pcre2.sh | 1 +
2 files changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index b18867196e..e437fa011c 100644
--- a/Makefile
+++ b/Makefile
@@ -1541,6 +1541,
Change the underlying engine powering POSIX basic & extended patterns
to be PCRE v2 under the hood.
This relies on an experimental SVN-trunk only PCRE v2 API which Philip
Hazel (the PCRE maintainer) wrote up in response to a feature request
I filed1[1].
This allows us to use
.
1. <20170511170142.15934-8-ava...@gmail.com>
(https://public-inbox.org/git/20170511170142.15934-8-ava...@gmail.com/)
Ævar Arnfjörð Bjarmason (6):
Makefile & compat/pcre2: add ability to build an embedded PCRE
Makefile & compat/pcre2: add dependency on pcre2_convert.c
co
on newlines for us already, so this
probably works on Windows as-is, but needs testing.
1. https://lists.exim.org/lurker/thread/20170507.223619.fbee8f00.en.html
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Makefile | 52 ++
Add LIBPCRE1 and LIBPCRE2 prerequisites which are true when git is
compiled with USE_LIBPCRE1=YesPlease or USE_LIBPCRE2=YesPlease,
respectively.
There are various edge cases or version-specific features that need to
be tested for.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
On Wed, May 10, 2017 at 6:46 AM, Mike Hommey wrote:
> On Wed, May 10, 2017 at 12:33:44AM -0400, Jeff King wrote:
>> On Tue, May 09, 2017 at 09:22:11PM -0700, Shawn Pearce wrote:
>>
>> > > Hmm. That makes sense generally, as the request should succeed. But it
>> > > seems like
On Wed, May 10, 2017 at 12:43 PM, Viresh Kumar wrote:
> On 10-05-17, 16:04, Viresh Kumar wrote:
>> On 10-05-17, 12:18, Ćvar Arnfjörđ Bjarmason wrote:
>> > On Wed, May 10, 2017 at 9:23 AM, Viresh Kumar
>> > wrote:
>> > > Hi,
>> > >
>> > > I have
On Tue, May 9, 2017 at 10:43 PM, Johannes Sixt <j...@kdbg.org> wrote:
> Am 09.05.2017 um 19:00 schrieb Ævar Arnfjörð Bjarmason:
>>
>> Finally, you can just use -i like you did with sed, no need for the
>> tempfile:
>
>
> Nope. Some implementations of perl at
On Tue, May 9, 2017 at 5:16 AM, Jeff King <p...@peff.net> wrote:
> On Mon, May 01, 2017 at 12:34:38PM +0200, Ævar Arnfjörð Bjarmason wrote:
>
>> > I don't know if we would want to be extra paranoid about patch-ids.
>> > There is no helping:
>> >
>> >
l in
>> error, please notify the sender immediately and destroy it. As its integrity
>> cannot be secured on the Internet, the Atos group liability cannot be
>> triggered for the message content. Although the sender endeavours to
>> maintain a computer virus-free network, the
On Tue, May 9, 2017 at 6:45 PM, Jonathan Tan wrote:
> Signed-off-by: Jonathan Tan
> ---
>
> Thanks - I didn't realize the existence of the test lint. Here's a
> fixup. Let me know if you prefer a full reroll.
>
> I had to use perl because
On Wed, May 10, 2017 at 12:38 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> On Tue, May 9, 2017 at 6:45 PM, Jonathan Tan <jonathanta...@google.com>
>> wrote:
>> ...
>>> # Tw
On Tue, May 9, 2017 at 12:40 PM, Johannes Schindelin
<johannes.schinde...@gmx.de> wrote:
> Hi,
>
> On Tue, 9 May 2017, brian m. carlson wrote:
>
>> On Tue, May 09, 2017 at 02:00:18AM +0200, Ævar Arnfjörð Bjarmason wrote:
>> > On Tue, May 9, 2017 at 1:3
On Tue, May 9, 2017 at 2:37 AM, brian m. carlson
<sand...@crustytoothpaste.net> wrote:
> On Tue, May 09, 2017 at 02:00:18AM +0200, Ævar Arnfjörð Bjarmason wrote:
>> On Tue, May 9, 2017 at 1:32 AM, brian m. carlson
>> <sand...@crustytoothpaste.net> wrote:
>> > PC
On Mon, May 15, 2017 at 8:24 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Factor the test for \0 in grep patterns into a function. Since commit
>> 9eceddeec6 ("Use kwset in grep", 2011-08-21) any
On Mon, May 15, 2017 at 5:20 PM, Ævar Arnfjörð Bjarmason
<ava...@gmail.com> wrote:
> I have a ~/git_tree in my homedir that's symlinked to an external
> drive, and doing "gitdir:~/git_tree/" doesn't work, because instead of
> matching against ~/git_tree it's matched
aren't utterly confused.
1. commit 3efd0bedc6 ("config: add conditional include", 2017-03-01)
2. commit 86f9515708 ("config: resolve symlinks in conditional
include's patterns", 2017-04-05)
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Here's a non
On Mon, May 15, 2017 at 10:59 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Fix a buggy warning about threads under NO_PTHREADS=YesPlease. Due to
>> re-using the delta_search_threads variable for both the
On Mon, May 15, 2017 at 7:50 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Add a die(...) to a default case for the switch statement selecting
>> between grep pattern types under --recurse-submodules.
>&
On Mon, May 15, 2017 at 6:57 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> + echo 2e >expect &&
>> + # In PCRE \d in [\d] is like saying "0-9", and matches the 2
>> +
On Mon, May 15, 2017 at 8:14 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Remove redundant assignments to the "regflags" variable. There are no
>> code paths that have previously set th
On Wed, May 17, 2017 at 8:52 PM, Stefan Beller <sbel...@google.com> wrote:
> On Wed, May 17, 2017 at 4:38 AM, Ævar Arnfjörð Bjarmason
> <ava...@gmail.com> wrote:
>> On Wed, May 17, 2017 at 9:09 AM, Junio C Hamano <gits...@pobox.com> wrote:
>>> Ævar Arnfj
On Wed, May 17, 2017 at 12:19 PM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>>> Well, it is one thing to place git-annex under CI to make sure its
>>> latest and greatest works together well with our
On Mon, May 15, 2017 at 8:09 PM, Mihails Strasuns
wrote:
> I was very excited to try out new conditional include feature but have
> quickly found out that it doesn't work with some of my custom scripts
> because of the following behaviour:
>
> # .gitconfig
> [includeIf
On Mon, May 15, 2017 at 5:54 PM, Øyvind A. Holm wrote:
> openhub.net has a comparion of the number of public repositories on the
> net, based on searching public hosting services on the net. Git just
> passed Subversion after the number of Git repositories has exploded
>
On Wed, May 17, 2017 at 7:39 AM, Junio C Hamano wrote:
> From: Marc Stevens
>
> Some big-endian platforms define _BIG_ENDIAN, which the test at the
> beginning of file has missed. Also, when the input is not aligned,
> some platforms trigger SIGBUS.
>
>
On Wed, May 17, 2017 at 4:45 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Add an optional test to test git-annex. It's guarded by a new
>> EXTERNAL_TESTS environment variable. Running this test takes me 10
On Tue, May 16, 2017 at 7:10 PM, Joey Hess wrote:
> Bisecting this test suite failure
> https://git-annex.branchable.com/git-annex_in_nixpkgs_fails_with_git-2.13.0/
> I landed on commit f57f37e2e1bf11ab4cdfd221ad47e961ba9353a0 to git.
That links's broken for me. Looking at your
On Tue, May 16, 2017 at 3:55 PM, 赵小强 wrote:
>
>
>> 在 2017年5月16日,20:10,Jan Viktorin 写道:
>>
>> Hello,
>>
>> with this patch applied to git 2.12, I could see:
>>
>> Use of uninitialized value $batch_size in numeric eq (==) at
>>
On Wed, May 17, 2017 at 9:09 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> On Wed, May 17, 2017 at 7:39 AM, Junio C Hamano <gits...@pobox.com> wrote:
>>> From: Marc Stevens <m...@marc-stevens.nl
allows us to in the future just use the upstream
code as-is, without any local modifications.
Now all the local modifications we've done in this directory (see the
git history of sha1dc/) are done either with defines, or via the newly
added sha1dc_git.[ch] files.
Signed-off-by: Ævar Arnfjörð
/sha1collisiondetection
master branch instead.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
.gitmodules| 4
Makefile | 8
hash.h | 2 +-
sha1collisiondetection | 1 +
4 files changed, 10 insertions(+), 5 deletions(-)
creat
On Fri, May 12, 2017 at 12:50 PM, Johannes Schindelin
wrote:
> On Windows, `(1|2)` is not a valid file name, and therefore the tag
> cannot be created as expected by the new test.
>
> So simply skip this test on Windows.
Thanks for the hotfix. I'll fix this in my v2,
On Fri, May 12, 2017 at 7:06 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Add a helper function to make the tests which check for patterns with
>> \0 in them more succinct. Right now this isn't a big
On Sat, May 13, 2017 at 11:54 AM, Sven Strickroth wrote:
Spelling error: Wikipeai
Looks good, but let's change these too while we're at it:
$ git grep http://en.wikip
Documentation/gitweb.txt:87:http://en.wikipedia.org/wiki/Query_string#URL_encoding[]),
the difference
On Sat, May 13, 2017 at 1:44 AM, Jonathan Nieder wrote:
> Johannes Schindelin wrote:
>
>> On Windows, `(1|2)` is not a valid file name, and therefore the tag
>> cannot be created as expected by the new test.
>>
>> So simply skip this test on Windows.
>>
>> Signed-off-by:
On Sat, May 13, 2017 at 11:54 AM, Sven Strickroth <em...@cs-ware.de> wrote:
> Signed-off-by: Sven Strickroth <em...@cs-ware.de>
Thanks! FWIW:
Reviewed-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
> ---
> Documentation/gitweb.txt | 2 +-
> bisect.c
On Sat, May 13, 2017 at 8:30 PM, Johannes Schindelin
<johannes.schinde...@gmx.de> wrote:
> Hi Ævar,
>
> I originally replied in a very verbose manner, going step by step through
> the "one-liner", but decided to rephrase everything.
>
> So here goes.
>
On Fri, May 12, 2017 at 6:59 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Amend the submodule recursion test to prepare it for subsequent tests
>> of whether it passes along the grep.pattern
On Fri, May 12, 2017 at 6:48 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> Add exhaustive tests for how the different grep.patternType options &
>> the corresponding command-line options affect git-log.
&
On Tue, Feb 12, 2013 at 11:17 AM, Brandon Casey wrote:
> The part of test_commit() may not be appropriate for a tag name.
> So let's allow test_commit to accept a fourth argument to specify the tag
> name.
[Kind of late to notice, I know]
I see nobody spotted in four rounds
On Sun, May 14, 2017 at 5:39 AM, Brian Malehorn wrote:
> If a commit message is being editted as "verbose", it will contain a
Typo, should be "edited": https://en.wiktionary.org/wiki/editted
long correctly.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t7814-grep-recurse-submodules.sh | 49 ++
1 file changed, 49 insertions(+)
diff --git a/t/t7814-grep-recurse-submodules.sh
b/t/t7814-grep-recurse-submodules.sh
index 1472855e1
mp; non-ASCII data.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t7008-grep-binary.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/t7008-grep-binary.sh b/t/t7008-grep-binary.sh
index 70e7868829..e7754c3946 100755
--- a/t/t7008-grep-binary.sh
+++
Add a helper function to make the tests which check for patterns with
\0 in them more succinct. Right now this isn't a big win, but
subsequent commits will add a lot more of these tests.
The helper is based on the match() function in t3070-wildmatch.sh.
Signed-off-by: Ævar Arnfjörð Bjarmason
e general name to make
it clear that they work on both library versions.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/README| 4 ++--
t/t7810-grep.sh | 28 ++--
t/t7812-grep-icase-non-ascii.sh | 4 ++--
t/t78
--perl-regexp or -P.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t4202-log.sh | 4 +++-
t/t7810-grep.sh | 12
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index e522a2fcd5..9680dfe400 100755
--- a/t/t4202-
wsset
when -F is specified", 2016-06-25). It was asserting that the regex
must be compiled with compile_fixed_regexp(), instead test for the
expected results, allowing the underlying implementation to change.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t7812-grep-ic
tests for pattern style options &
config", 2017-04-07). The pattern "(.|.)[\d]" will match this content
differently under fixed/basic/extended & perl.
This test code was originally added in commit 0281e487fd ("grep:
optionally recurse into submodules", 2016-1
ere they make less sense is the
pattern everything else follows in that file. I'm not going to war
against that as part of this change, just following the existing
pattern.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Makefile | 6 --
configure.ac | 12
matching method than the one it's told to use.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t4202-log.sh | 94 +-
1 file changed, 93 insertions(+), 1 deletion(-)
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index f57
; fixes" series.
Thanks a lot for the review everyone. This fixes all the issues
raised. Changes noted below, with names prefixed by the person who
raised the issue.
Ævar Arnfjörð Bjarmason (29):
Makefile & configure: reword inaccurate comment about PCRE
grep & rev-list doc: stop
Add a test for backreferences such as (.)\1 in PCRE patterns. This
test ensures that the PCRE_NO_AUTO_CAPTURE option isn't turned
on. Before this change turning it on would break these sort of
patterns, but wouldn't break any tests.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
the a previous commit in this series ("grep: add tests to fix
blind spots with \0 patterns", 2017-04-21) for further details &
rationale.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t7008-grep-binary.sh | 71 ++
ot;wait this is used under
PCRE how?" confusion when reading the code, than to to save ourselves
trivial CPU cycles by removing one assignment.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/grep.c b/grep.c
index 47
lar expression support. By wording the
documentation differently and not promising any specific version of
PCRE or even PCRE at all we have more wiggle room to change the
implementation.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Documentation/git-grep.txt | 7 +--
t --threads=N without pthreads still returns expected results.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t7810-grep.sh | 16
1 file changed, 16 insertions(+)
diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh
index daa906b9b0..561709ef6a 100755
--- a/t/t7
trigger in practice, but if a new pattern type were to be added
this catches an otherwise silent bug during development.
See commit 0281e487fd ("grep: optionally recurse into submodules",
2016-12-16) for the initial addition of this code.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava
.t[^ ]*|v.ry) rare 0.88(5.82+0.35)
7820.17: basic grep m\(ú\|u\)lt.b\(æ\|y\)te 0.29(1.26+0.48)
7820.18: extended grep m(ú|u)lt.b(æ|y)te 0.29(1.36+0.39)
7820.19: perl grep m(ú|u)lt.b(æ|y)te 0.32(1.61+0.43)
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.c
what's going on and what revision is being
tested as the output scrolls by.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/perf/run | 2 ++
1 file changed, 2 insertions(+)
diff --git a/t/perf/run b/t/perf/run
index b61024a830..beb4acc0e4 100755
--- a/t/perf/run
+++ b/
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Makefile | 3 +++
t/perf/README | 19 +--
t/perf/run| 11 +--
3 files changed, 29 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index eedadb8056..d1587452f1 100644
--- a/Makefile
makes the code look nicer.
1. https://lists.exim.org/lurker/message/20150105.162835.0666407a.en.html
2. https://lists.exim.org/lurker/thread/20170419.172322.833ee099.en.html
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Makefile | 30 +---
configure.ac | 77 ++
noted below & reply to who noted the issue:
Ævar Arnfjörð Bjarmason (7):
grep: don't redundantly compile throwaway patterns under threading
Brandon: Added a few paragraphs to the commit message about why this
change is being made, i.e. for ease of understanding the code, not
optimization
before
the first thread is started.
1. http://sljit.sourceforge.net/pcre.html
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
builtin/grep.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/builtin/grep.c b/builtin/grep.c
index b1095362fb..12
tirely when
1 thread is requested.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
builtin/grep.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/builtin/grep.c b/builtin/grep.c
index 12e62fcbf3..bd008cb100 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -1238,6 +1238,
rsions.
1. http://www.pcre.org/original/changelog.txt ("28. Introducing a
native interface for JIT. Through this interface, the
compiled[...]")
2. https://bugs.exim.org/show_bug.cgi?id=2121
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 8
han 7.5 as I'm confident
that if the build breaks on those older versions it's not because of
my JIT change.
See the "un-break" change in this series ("grep: un-break building
with PCRE < 8.32", 2017-05-10) for why this isn't squashed into the
main PCRE JIT commit.
Signed
's no graceful fallback if pcre_jit_stack_alloc() fails under
PCRE_CONFIG_JIT, instead the program will simply abort. I don't think
this is worth handling gracefully, it'll only fail in cases where
malloc() doesn't work, in which case we're screwed anyway.
Signed-off-by: Ævar Arnfjörð Bjarmason <
ment, as the log command already uses that
for -G.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Documentation/rev-list-options.txt | 1 +
revision.c | 2 +-
t/t4202-log.sh | 12
3 files changed, 14 insertions
-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/t5300-pack-object.sh | 34 ++
1 file changed, 34 insertions(+)
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index 43a672c345..1629fa80b0 100755
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack
Move the is_fixed() function which are currently only used in
compile_regexp() earlier so it can be used in the PCRE family of
functions in a later change.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 24
1 file changed, 12 insertions(
he initial introduction of
git-grep in commit 5010cb5fcc ("built-in "git grep"", 2006-04-30).
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/grep.c b/grep.c
index 59ae7809f2..bf6c249
Add a PTHREADS prerequisite which is false when git is compiled with
NO_PTHREADS=YesPlease.
There's lots of custom code that runs when threading isn't available,
but before this prerequisite there was no way to test it.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Ma
n unless we're spawning threads.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
builtin/grep.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtin/grep.c b/builtin/grep.c
index 3c721b75a5..b1095362fb 100644
--- a/builtin/grep.c
+++ b/builtin/gre
able via
pack.threads, and have long warned about the same under
NO_PTHREADS=YesPlease.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
builtin/grep.c | 13 +
t/t7810-grep.sh | 18 ++
2 files changed, 31 insertions(+)
diff --git a/builtin/grep.c b/builti
uot;pack.threads" & --threads.
Solve this bug by resetting the delta_search_threads variable in
git_pack_config(), it might then be set by --threads again and be
subsequently warned about, as the test I'm changing here asserts.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com
, 2017-04-07) elaborates on the motivations
behind this change.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 52 ++--
grep.h | 8
2 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/grep.c b/grep.c
index
code and the USE_LIBPCRE Makefile argument was added in commit
63e7e9d8b6 ("git-grep: Learn PCRE", 2011-05-09). At the time there was
no indication that the PCRE project would release an entirely new &
incompatible API around 3 years later.
Signed-off-by: Ævar Arnfjörð Bjarmason
nform to the style guide, i.e. add
an opening "/*\n".
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
grep.c | 20 +---
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/grep.c b/grep.c
index bf6c2494fd..79eb681c6e 100644
--- a/grep.c
test of grep -G, -E
and -P", 2017-04-19) for details on the machine the above test run was
executed on.
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
t/perf/p7821-grep-engines-fixed.sh | 26 ++
1 file changed, 26 insertions(+)
create mode 10075
On Tue, May 16, 2017 at 2:46 AM, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
>> On Mon, 15 May 2017, Junio C Hamano wrote:
>>
>>> My knee-jerk reaction matched Dscho's, but grep is about contents,
>>> and we should be able to test this if
On Tue, May 16, 2017 at 11:06 AM, Junio C Hamano <gits...@pobox.com> wrote:
> Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:
>
>> This and many other discussions on-list basically come down to:
>>
>> 1. Someone wants to change X.
>> 2. This woul
On Tue, May 16, 2017 at 2:37 AM, Junio C Hamano wrote:
> Johannes Schindelin writes:
>
>> On Fri, 12 May 2017, Junio C Hamano wrote:
>>
>>> Is it really hurting us having to support these old information
>>> sources we treat as read-only?
>>
>>
utterly confused.
1. commit 3efd0bedc6 ("config: add conditional include", 2017-03-01)
2. commit 86f9515708 ("config: resolve symlinks in conditional
include's patterns", 2017-04-05)
Signed-off-by: Ævar Arnfjörð Bjarmason <ava...@gmail.com>
---
Thanks.
I have a ~/git_tree in my homedir that's symlinked to an external
drive, and doing "gitdir:~/git_tree/" doesn't work, because instead of
matching against ~/git_tree it's matched against
/mnt/some-other-storage/.
Here's a WIP patch that makes this work for me, any reason I shouldn't
finish this up
On Tue, May 9, 2017 at 2:48 PM, Sebastian Gniazdowski
wrote:
> Hello
> I wonder about usability of following tool. Quick-start:
>
> giturl https://github.com/zdharma/giturl -r devel -p
> lib/coding_functions.cpp
>
> Protocol: https
> Site: github.com
>
On Tue, May 9, 2017 at 4:22 PM, demerphq <demer...@gmail.com> wrote:
> On 9 May 2017 at 13:12, Ævar Arnfjörð Bjarmason <ava...@gmail.com> wrote:
>> On Tue, May 9, 2017 at 2:37 AM, brian m. carlson
>> <sand...@crustytoothpaste.net> wrote:
>>> On Tue, May 0
701 - 800 of 2740 matches
Mail list logo