All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Morton <admin@game-point.net>
To: git@vger.kernel.org
Subject: Running interpret-trailers automatically on each commit?
Date: Fri, 28 Aug 2015 16:22:25 +0100	[thread overview]
Message-ID: <55E07CB1.0@game-point.net> (raw)

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)

             reply	other threads:[~2015-08-28 15:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28 15:22 Jeremy Morton [this message]
2015-08-28 17:06 ` Running interpret-trailers automatically on each commit? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55E07CB1.0@game-point.net \
    --to=admin@game-point.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.