Re: git grep -P fatal: pcre_exec failed with error code -8

2017-11-06 Thread Ævar Arnfjörð Bjarmason
On Mon, Nov 06 2017, Jeff King jotted: > On Mon, Nov 06, 2017 at 12:50:45PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> Some replies to the thread in general, didn't want to spread this out >> into different replies. >> >> * Yes this sucks. >> >> * Just emitting a warning without an appropriate

Re: git grep -P fatal: pcre_exec failed with error code -8

2017-11-06 Thread Jeff King
On Mon, Nov 06, 2017 at 12:50:45PM +0100, Ævar Arnfjörð Bjarmason wrote: > Some replies to the thread in general, didn't want to spread this out > into different replies. > > * Yes this sucks. > > * Just emitting a warning without an appropriate exit code would suck >more, would break

Re: git grep -P fatal: pcre_exec failed with error code -8

2017-11-06 Thread Ævar Arnfjörð Bjarmason
On Mon, Nov 06 2017, Jeff King jotted: > On Sun, Nov 05, 2017 at 10:41:17AM +0100, Дилян Палаузов wrote: > >> I understand that the PCRE's stack can get exhausted for some files, but in >> such cases, git grep shall proceed with the other files, and print at the >> end/stderr for which files the

Re: git grep -P fatal: pcre_exec failed with error code -8

2017-11-06 Thread Jeff King
On Sun, Nov 05, 2017 at 10:41:17AM +0100, Дилян Палаузов wrote: > I understand that the PCRE's stack can get exhausted for some files, but in > such cases, git grep shall proceed with the other files, and print at the > end/stderr for which files the pattern was not applied. Such behaviour >

Re: git grep -P fatal: pcre_exec failed with error code -8

2017-11-05 Thread Дилян Палаузов
Hello, thanks for your answer. I understand that the PCRE's stack can get exhausted for some files, but in such cases, git grep shall proceed with the other files, and print at the end/stderr for which files the pattern was not applied. Such behaviour would be more usefull than the current

Re: git grep -P fatal: pcre_exec failed with error code -8

2017-11-04 Thread Jeff King
On Sun, Nov 05, 2017 at 01:06:21AM +0100, Дилян Палаузов wrote: > with git 2.14.3 linked with libpcre.so.1.2.9 when I do: > git clone https://github.com/django/django > cd django > git grep -P "if.*([^\s])+\s+and\s+\1" >

git grep -P fatal: pcre_exec failed with error code -8

2017-11-04 Thread Дилян Палаузов
Hello, with git 2.14.3 linked with libpcre.so.1.2.9 when I do: git clone https://github.com/django/django cd django git grep -P "if.*([^\s])+\s+and\s+\1" django/contrib/admin/static/admin/js/vendor/select2/select2.full.min.js the output is: fatal: pcre_exec failed with error code -8