From: Ramsay Jones Date: Thu, 14 Feb 2019 16:28:09 GMT Subject: Re: [PATCH v2] read-cache: add post-indexchanged hook Message-ID: <2f08ee3b-4511-2838-4c70-640d01fe1658@ramsayjones.plus.com> In-Reply-To: <20190214144241.11240-1-peartben@gmail.com> 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 commands that trigger the index write. > > The hook is passed a flag to indicate whether the working directory was > updated or not and a flag indicating if a skip-worktree bit could have > changed. These flags enable the hook to optmize its response to the s/optmize/optimize/ ATB, Ramsay Jones