RE: [PATCH v2] read-cache: add post-indexchanged hook

2019-02-15 Thread Ben Peart
> -Original Message- > From: Junio C Hamano On Behalf Of Junio C Hamano > Sent: Friday, February 15, 2019 12:50 PM > To: Ben Peart > Cc: Ramsay Jones ; git@vger.kernel.org; > Ben Peart ; Kevin Willford > ; sand...@crustytoothpaste.net > Subject: Re: [PATCH

Re: [PATCH v2] read-cache: add post-indexchanged hook

2019-02-15 Thread Junio C Hamano
Ben Peart writes: > On 2/14/2019 3:33 PM, Junio C Hamano wrote: >> Ramsay Jones writes: >> >>> On 14/02/2019 14:42, Ben Peart wrote: From: Ben Peart Add a post-indexchanged hook that is invoked after the index is written in >>> >>> s/post-indexchanged/post-index-changed/ >> >> Go

Re: [PATCH v2] read-cache: add post-indexchanged hook

2019-02-14 Thread Ben Peart
On 2/14/2019 3:33 PM, Junio C Hamano wrote: Ramsay Jones writes: On 14/02/2019 14:42, Ben Peart wrote: From: Ben Peart Add a post-indexchanged hook that is invoked after the index is written in s/post-indexchanged/post-index-changed/ Good. I wasn't paying close attention to the prev

Re: [PATCH v2] read-cache: add post-indexchanged hook

2019-02-14 Thread Junio C Hamano
Ramsay Jones writes: > On 14/02/2019 14:42, Ben Peart wrote: >> From: Ben Peart >> >> Add a post-indexchanged hook that is invoked after the index is written in > > s/post-indexchanged/post-index-changed/ Good. I wasn't paying close attention to the previous round, but is that the only name-r

Re: [PATCH v2] read-cache: add post-indexchanged hook

2019-02-14 Thread Ramsay Jones
On 14/02/2019 14:42, Ben Peart wrote: > From: Ben Peart > > Add a post-indexchanged hook that is invoked after the index is written in s/post-indexchanged/post-index-changed/ > do_write_locked_index(). > > This hook is meant primarily for notification, and cannot affect > the outcome of git

[PATCH v2] read-cache: add post-indexchanged hook

2019-02-14 Thread Ben Peart
From: Ben Peart Add a post-indexchanged hook that is invoked after the index is written in do_write_locked_index(). This hook is meant primarily for notification, and cannot affect the outcome of git commands that trigger the index write. The hook is passed a flag to indicate whether the workin