Git development
 help / color / mirror / Atom feed
* hook to get info on commit, and include that in a file that is part of the commit
@ 2019-02-05  1:36 Larry Martell
  2019-02-05  1:55 ` brian m. carlson
  0 siblings, 1 reply; 7+ messages in thread
From: Larry Martell @ 2019-02-05  1:36 UTC (permalink / raw)
  To: git

Is there any way using a git hook to get info on the commit (id,
message), put that in a file, and include that file in the commit?

If I try that in a pre-commit hook I do not get the info on the
current commit. I tried it in pre-receive but it does not seem to get
executed at all.

If I do it in post-receive it's too late to check the file in with the commit.

Os there no way to do this?

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

end of thread, other threads:[~2019-02-05  2:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-05  1:36 hook to get info on commit, and include that in a file that is part of the commit Larry Martell
2019-02-05  1:55 ` brian m. carlson
2019-02-05  2:00   ` Larry Martell
2019-02-05  2:15     ` brian m. carlson
2019-02-05  2:18       ` Larry Martell
2019-02-05  2:40         ` brian m. carlson
2019-02-05  2:42           ` Larry Martell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox