threads / discuss / 37800

Question On Hooks

Subject: Question On Hooks

## tl;dr

One message between Oct 24, 2014 and Oct 24, 2014.

replies: 0people: 1as markdown or json

Matt Schmidt· Oct 24, 2014, 14:24 UTC · lore
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

← back to recent threads