git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Running interpret-trailers automatically on each commit?
@ 2015-08-28 15:22 Jeremy Morton
  2015-08-28 17:06 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Morton @ 2015-08-28 15:22 UTC (permalink / raw)
  To: git

I see that interpret-trailers has been added by default in git 2.5.0. 
  However the documentation isn't that great and I can't tell whether 
it gets run automatically when I do a "git commit".  My guess is that 
it doesn't - that you have to set up a hook to get it to run each commit.

As far as I can tell, there is no way to configure global git hooks. 
Sure, you can set init.templatedir but that only applies for 
newly-init'ed or cloned repos.  So if I have 50 repos on my hard drive 
I still have to go through every one of them and set up a hook for it.

Basically, am I right in thinking that there is *still* no way for me 
to configure git (on a global, not per-repo basis) to automatically 
tack a trailer onto every commit message?  For the record, I want that 
trailer to be the current branch name.

-- 
Best regards,
Jeremy Morton (Jez)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-31 17:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-28 15:22 Running interpret-trailers automatically on each commit? Jeremy Morton
2015-08-28 17:06 ` Junio C Hamano
2015-08-28 17:07   ` Jeremy Morton
2015-08-31  8:12     ` Matthieu Moy
2015-08-31 17:48       ` Junio C Hamano
2015-08-31 17:48       ` Junio C Hamano

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).