On 2007-11-28 10:34:03 +0100, Karl Hasselström wrote: > It would also be convenient with a post-commit hook that turns new > commits into patches automatically. And gives "git commit --amend" > the semantics of "stg refresh". Hmm, so what I'd want for this is a hook that gets called every time a branch ref is updated (after the update), preferably with the ref name and its old and new values as arguments (but as long as I get the ref name, I guess I could just ask git for the sha1s?). Is there such a hook? I poked around a bit, but couldn't find any. For extra points, I'd like to know what operation caused the ref update. I'd want to do different things depending on whether the user did a "commit" or "commit --amend", for example. I could use a heuristic, but I'd rather not if there's a way to know for sure. (Hmm. It looks like the reflog messages could be used here. Are they stable enough?) Also, if StGit is to set up hooks automatically (commit hooks, pre-rebase hooks, whatever), it'd be nice to not have to worry about overwriting any existing hooks the user might have. But git currently allows only one hook script per hook, right? -- Karl Hasselström, kha@xxxxxxxxxxx www.treskal.com/kalle - 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