git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ben Peart <ben.peart@microsoft.com>
Date
Feb 15, 2019, 18:02 UTC
Message-ID
<BL0PR2101MB0914080996B40B6240322DD2F4600@BL0PR2101MB0914.namprd21.prod.outlook.com>
In-Reply-To
<xmqq1s496iwe.fsf@gitster-ct.c.googlers.com>
Show 40 quoted lines
> -----Original Message-----
> From: Junio C Hamano <jch2355@gmail.com> On Behalf Of Junio C Hamano
> Sent: Friday, February 15, 2019 12:50 PM
> To: Ben Peart <peartben@gmail.com>
> Cc: Ramsay Jones <ramsay@ramsayjones.plus.com>; git@vger.kernel.org;
> Ben Peart <Ben.Peart@microsoft.com>; Kevin Willford
> <kewillf@microsoft.com>; sandals@crustytoothpaste.net
> Subject: Re: [PATCH v2] read-cache: add post-indexchanged hook
> 
> Ben Peart <peartben@gmail.com> writes:
> 
> > On 2/14/2019 3:33 PM, Junio C Hamano wrote:
> >> Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
> >>
> >>> On 14/02/2019 14:42, Ben Peart wrote:
> >>>> From: Ben Peart <benpeart@microsoft.com>
> >>>>
> >>>> 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-related bikeshedding?  I somehow feel that without
> >> s/changed/change/ the name does not roll well on my tongue and does
> >> not sit well together with existing ones like post-receive (which is
> >> not post-received).  I dunno.
> >>
> >> Will queue.  Thanks.
> >
> > Would you like me to submit another version with the above spelling
> > corrections in the commit message or is it easier to fix it up
> > yourself?
> 
> I've already done s/indexchanged/index-changed/ before queuing (there
> was only one IIRC in the log message), and also the 'optimize' typofix.
> 
> I didn't do anything about dropping 'd' at the end, as I haven't heard any
> feedback on that from anybody yet.
> 
I'm ok with either.  post-index-changed sounded clearer to me but you're right, none of the other hooks use the post tense.  I've submitted one with 'post-index-change' - feel free to keep/user either.
Show 14 quoted lines
> >>>> 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
Previous: Junio C HamanoNext: Ben Peart
Message 12 of 13 in “Add post-indexchanged hook”
  1. 0/3 Add post-indexchanged hookBen Peart, Feb 8, 2019
  2. 1/3 read-cache: add post-indexchanged hookBen Peart, Feb 8, 2019
  3. brian m. carlsonFeb 8, 2019
  4. Ben PeartFeb 12, 2019
  5. 3/3 read-cache: Add documentation for the post-indexchanged hookBen Peart, Feb 8, 2019
  6. 2/3 read-cache: add test for post-indexchanged hookBen Peart, Feb 8, 2019
  7. read-cache: add post-indexchanged hookBen Peart, Feb 14, 2019
  8. Ramsay JonesFeb 14, 2019
  9. Junio C HamanoFeb 14, 2019
  10. Ben PeartFeb 15, 2019
  11. Junio C HamanoFeb 15, 2019
  12. Ben PeartFeb 15, 2019
  13. read-cache: add post-index-change hookBen Peart, Feb 15, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.