[PATCH] squash! grep: replace grep_read_mutex by internal obj read lock

2019-10-01 Thread Matheus Tavares
Signed-off-by: Matheus Tavares --- This is just a small fixup to be squashed into patch 6: with multiple locks, the locking order must be consistent across all critical sections to avoid dead-lock. Since grep_attr_lock() is called before obj_read_lock() in grep_source_load_driver(), it must also

Re: [PATCH] SQUASH

2019-08-12 Thread Carlo Arenas
On Mon, Aug 12, 2019 at 5:14 AM René Scharfe wrote: > > That looks like an issue worth its own commit. OK, but then will make my topic interesting; indeed it almost feels like it should be 3 different topics all depending of each other in a chain: * really use the match context * move to xmalloc

Re: [PATCH] SQUASH

2019-08-12 Thread René Scharfe
Am 12.08.19 um 09:35 schrieb Carlo Arenas: > On Sat, Aug 10, 2019 at 12:48 PM René Scharfe wrote: >>> On Sat, Aug 10, 2019 at 12:57 AM René Scharfe wrote: >>> >>> Do you mind then if I "adopt" your patch and submit a reroll with it, >> >> I don't mind, sounds good. > > I had to squash another fix

Re: [PATCH] SQUASH

2019-08-12 Thread Carlo Arenas
On Sat, Aug 10, 2019 at 12:48 PM René Scharfe wrote: > > On Sat, Aug 10, 2019 at 12:57 AM René Scharfe wrote: > > > > Do you mind then if I "adopt" your patch and submit a reroll with it, > > I don't mind, sounds good. I had to squash another fix that was reported[1] before but wasn't picked up

Re: [PATCH] SQUASH

2019-08-10 Thread René Scharfe
Am 10.08.19 um 10:42 schrieb Carlo Arenas: > On Sat, Aug 10, 2019 at 12:57 AM René Scharfe wrote: >> >> Am 10.08.19 um 05:03 schrieb Carlo Marcelo Arenas Belón: >>> Make using a general context (that is only needed with NED) to depend >>> on NED being selected at compile time. >> >> A custom gener

Re: [PATCH] SQUASH

2019-08-10 Thread Johannes Schindelin
Hi Carlo, On Fri, 9 Aug 2019, Carlo Marcelo Arenas Belón wrote: > diff --git a/grep.c b/grep.c > index 8255ec956e..233072ed80 100644 > --- a/grep.c > +++ b/grep.c > @@ -482,6 +482,7 @@ static void free_pcre1_regexp(struct grep_pat *p) > #endif /* !USE_LIBPCRE1 */ > > #ifdef USE_LIBPCRE2 > +#ifd

Re: [PATCH] SQUASH

2019-08-10 Thread Carlo Arenas
On Sat, Aug 10, 2019 at 12:57 AM René Scharfe wrote: > > Am 10.08.19 um 05:03 schrieb Carlo Marcelo Arenas Belón: > > Make using a general context (that is only needed with NED) to depend > > on NED being selected at compile time. > > A custom general context is needed to convince PCRE2 to use xma

Re: [PATCH] SQUASH

2019-08-10 Thread René Scharfe
Am 10.08.19 um 05:03 schrieb Carlo Marcelo Arenas Belón: > Make using a general context (that is only needed with NED) to depend > on NED being selected at compile time. A custom general context is needed to convince PCRE2 to use xmalloc() instead of mallo(). That is independent of the choice of

[PATCH] SQUASH

2019-08-09 Thread Carlo Marcelo Arenas Belón
Make using a general context (that is only needed with NED) to depend on NED being selected at compile time. the compile_context could be also make conditional but it gets ugly really fasts with #ifdef --- Makefile | 2 +- grep.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff -

Re: [PATCH] squash! completion: fill COMPREPLY directly when completing refs

2017-02-13 Thread Junio C Hamano
SZEDER Gábor writes: > On Fri, Feb 10, 2017 at 10:44 PM, Junio C Hamano wrote: > >> Should I expect a reroll to come, or is this the only fix-up to the >> series that begins at <20170203025405.8242-1-szeder@gmail.com>? >> >> No hurries. > > Yes, definitely. > > I found a minor bug in the mid

Re: [PATCH] squash! completion: fill COMPREPLY directly when completing refs

2017-02-13 Thread SZEDER Gábor
On Fri, Feb 10, 2017 at 10:44 PM, Junio C Hamano wrote: > Should I expect a reroll to come, or is this the only fix-up to the > series that begins at <20170203025405.8242-1-szeder@gmail.com>? > > No hurries. Yes, definitely. I found a minor bug in the middle of the series, and haven't quite

Re: [PATCH] squash! completion: fill COMPREPLY directly when completing refs

2017-02-10 Thread Junio C Hamano
SZEDER Gábor writes: > Care should be taken, though, because that prefix might contain > 'for-each-ref' format specifiers as part of the left hand side of a > '..' range or '...' symmetric difference notation or fetch/push/etc. > refspec, e.g. 'git log "evil-%(refname)..br'. Doubling every '%' >

[PATCH] squash! completion: fill COMPREPLY directly when completing refs

2017-02-06 Thread SZEDER Gábor
Care should be taken, though, because that prefix might contain 'for-each-ref' format specifiers as part of the left hand side of a '..' range or '...' symmetric difference notation or fetch/push/etc. refspec, e.g. 'git log "evil-%(refname)..br'. Doubling every '%' in the prefix will prevent 'git

[PATCH] SQUASH

2016-11-22 Thread Stefan Beller
Signed-off-by: Stefan Beller --- On Tue, Nov 22, 2016 at 11:22 AM, Stefan Beller wrote: > When a submodule has its git dir inside the working dir, the submodule > support for checkout that we plan to add in a later patch will fail. > > Add functionality to migrate the git directory to be embedde

[PATCH] SQUASH to: submodule update: add `--init-default-path` switch

2016-11-03 Thread Stefan Beller
Signed-off-by: Stefan Beller --- I discovered this, when going over this series myself once again, as I am thinking about how this setting may affect the "git checkout --recurse-submodules" that I am currently working on. I'll include this in a resend, if a resend is needed (i.e. more changes ar

Re: [PATCH] squash! diff: add --diff-line-prefix option for passing in a prefix

2016-08-16 Thread Johannes Schindelin
Hi Junio, On Mon, 15 Aug 2016, Junio C Hamano wrote: > Obviously (1) is a lot of impact with little gain, and as Jacob > already offered to do, I think (2) is a lot more sensible solution > and it also is more in line with your "If it isn't broken, do not > fix it", I would say. Yep, that makes

Re: [PATCH] squash! diff: add --diff-line-prefix option for passing in a prefix

2016-08-15 Thread Junio C Hamano
Johannes Schindelin writes: > On Sun, 14 Aug 2016, Junio C Hamano wrote: > >> Johannes Schindelin writes: >> >> > - test=$(echo "$cmd" | sed -e 's|[/ ][/ ]*|_|g') >> > + test=$(echo "$cmd" | sed -e 's|[/ ][/ ]*|_|g' -e 'y/>/_/') >> ... > I know that this is so because my first iteration of th

Re: [PATCH] squash! diff: add --diff-line-prefix option for passing in a prefix

2016-08-15 Thread Johannes Schindelin
Hi Junio, On Sun, 14 Aug 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > - test=$(echo "$cmd" | sed -e 's|[/ ][/ ]*|_|g') > > + test=$(echo "$cmd" | sed -e 's|[/ ][/ ]*|_|g' -e 'y/>/_/') > > The existing sed scriptlet says "we cannot have slash and do not > want to have spa

Re: [PATCH] squash! diff: add --diff-line-prefix option for passing in a prefix

2016-08-14 Thread Junio C Hamano
Johannes Schindelin writes: > - test=$(echo "$cmd" | sed -e 's|[/ ][/ ]*|_|g') > + test=$(echo "$cmd" | sed -e 's|[/ ][/ ]*|_|g' -e 'y/>/_/') The existing sed scriptlet says "we cannot have slash and do not want to have space in filename, so we squash runs of them to a single underscore"

[PATCH] squash! diff: add --diff-line-prefix option for passing in a prefix

2016-08-14 Thread Johannes Schindelin
The '>' character is not a legal part of filenames on Windows. So let's just not use it in Git's source code. This poses a challenge in the test script t4013 which distills command-lines into file names (so that the expected outcome can be stored in files with said names). We have to take particul

Re: [PATCH] squash! bash-completion: add support for git-log --merges= and log.merges

2015-04-21 Thread Junio C Hamano
Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] squash! bash-completion: add support for git-log --merges= and log.merges

2015-04-21 Thread SZEDER Gábor
--- The patch at the tip of kk/log-merges-config misindented one of the case arms, this one amends it. contrib/completion/git-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index