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

Question On Hooks

From
MSMatt Schmidt <schmidty@wsucougars.com>
Date
Oct 24, 2014, 14:24 UTC
Message-ID
<544A6133.9040600@wsucougars.com>
Hi,

I was curious if there was any work done on a possible Git client-side hook for "post-fetch"?

Not sure if this is a valid question or even the idea is valid for Git but my thoughts are to fire a script after a successful fetch (delta change) has been received for a local repository - any branch. Maybe have it recognized specific branches to watch? The idea would be for a simple database migration script.

I know there is a "post-merge" but it doesn't always fire after a "git pull" due to fast forwarding, I believe after testing?

I am not a C programmer but have done a little "noodling" at times, trying to learn. I figure this might be a good kick-starter idea?

Thanks for any help or information you might be able to provide on this question.

Matt Schmidt PHP Programmer for Acronym Media Spokane Valley, WA

Message 1 of 1 in “Question On Hooks”
  1. Matt SchmidtOct 24, 2014

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.