* [RFC] Running a hook on reset
@ 2013-09-01 12:17 Andres Freund
0 siblings, 0 replies; only message in thread
From: Andres Freund @ 2013-09-01 12:17 UTC (permalink / raw)
To: git
Hi,
I propose adding a hook that is run after git reset.
My personal use case for that is that I am indexing my checkouts using
global (a tool similar to ctags, cscope, ...) and I really like that
index to be up2date all the time. I can catch most cases where the work
tree changes from git via the post-checkout, post-merge, post-rewrite
hooks. The only frequent case I don't know how to trigger a reindex is
git reset --hard.
Another related usecases I can imagine is people wanting to check that
there is nothing important/irrecoverable in the current checkout before
resetting it, but that would obviously be a pre-reset hook.
Any opinions about the feature before I start writing a patch?
Greetings,
Andres Freund
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-01 12:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-01 12:17 [RFC] Running a hook on reset Andres Freund
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).