[RFC] Running a hook on reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]