Re: hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread Larry Martell
On Mon, Feb 4, 2019 at 9:41 PM brian m. carlson wrote: > > On Mon, Feb 04, 2019 at 09:18:14PM -0500, Larry Martell wrote: > > On Mon, Feb 4, 2019 at 9:15 PM brian m. carlson > > wrote: > > > If you want to generate a file, you can certainly do that in the > > > post-commit hook or using a Makefil

Re: hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread brian m. carlson
On Mon, Feb 04, 2019 at 09:18:14PM -0500, Larry Martell wrote: > On Mon, Feb 4, 2019 at 9:15 PM brian m. carlson > wrote: > > If you want to generate a file, you can certainly do that in the > > post-commit hook or using a Makefile target. You just can't check it > > into the repo. Lots of project

Re: hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread Larry Martell
On Mon, Feb 4, 2019 at 9:15 PM brian m. carlson wrote: > > On Mon, Feb 04, 2019 at 09:00:42PM -0500, Larry Martell wrote: > > Thanks for the reply. Any suggestions on how to achieve what I want to do? > > > > The use case is that we want to have a file that is part of the > > install that has cert

Re: hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread brian m. carlson
On Mon, Feb 04, 2019 at 09:00:42PM -0500, Larry Martell wrote: > Thanks for the reply. Any suggestions on how to achieve what I want to do? > > The use case is that we want to have a file that is part of the > install that has certain info (commit id, date of commit, commit > message, etc.). and w

Re: hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread Larry Martell
On Mon, Feb 4, 2019 at 8:55 PM brian m. carlson wrote: > > On Mon, Feb 04, 2019 at 08:36:10PM -0500, Larry Martell wrote: > > 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-commi

Re: hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread brian m. carlson
On Mon, Feb 04, 2019 at 08:36:10PM -0500, Larry Martell wrote: > 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

hook to get info on commit, and include that in a file that is part of the commit

2019-02-04 Thread Larry Martell
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