* git gui and commit-msg hook
[not found] <054F21930D24A0428E5B4588462C7AEDC5F8DB@ednex512.dsto.defence.gov.au>
@ 2008-01-16 23:13 ` Blucher, Guy
2008-01-18 4:12 ` Shawn O. Pearce
2008-01-21 4:08 ` Shawn O. Pearce
0 siblings, 2 replies; 5+ messages in thread
From: Blucher, Guy @ 2008-01-16 23:13 UTC (permalink / raw)
To: git
Hi,
Is the commit-msg hook supposed to work when using git gui to do a
commit?
I've just setup a commit-msg hook in my local repository. It works as
advertised from the command-line when using git commit, but if I use git
gui to do the commit, then the hook is ignored.
I also have a pre-commit hook in my repository which runs fine when
using 'git gui' or 'git commit'.
All I want to do is verify that the text of a commit message follows
some "corporate standard", perhaps I can do this using the pre-commit
hook instead, but commit-msg seems to be the best fit?
Regards,
Guy.
IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git gui and commit-msg hook
2008-01-16 23:13 ` git gui and commit-msg hook Blucher, Guy
@ 2008-01-18 4:12 ` Shawn O. Pearce
2008-01-21 4:08 ` Shawn O. Pearce
1 sibling, 0 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2008-01-18 4:12 UTC (permalink / raw)
To: Blucher, Guy; +Cc: git
"Blucher, Guy" <Guy.Blucher@dsto.defence.gov.au> wrote:
> Is the commit-msg hook supposed to work when using git gui to do a
> commit?
Uhhh. Whoops. ;-)
git-gui doesn't implement the commit-msg hook. Because I forgot
to implement it. So yes, its supposed to work, but no, it doesn't,
because it was never coded. :-)
> All I want to do is verify that the text of a commit message follows
> some "corporate standard", perhaps I can do this using the pre-commit
> hook instead, but commit-msg seems to be the best fit?
Yes, commit-msg is the proper hook to use here. But git-gui doesn't
honor it. I'll try to work out a fix after dinner this evening.
Thanks for the bug report. Definately appreciated.
--
Shawn.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git gui and commit-msg hook
2008-01-16 23:13 ` git gui and commit-msg hook Blucher, Guy
2008-01-18 4:12 ` Shawn O. Pearce
@ 2008-01-21 4:08 ` Shawn O. Pearce
2008-01-21 4:32 ` Junio C Hamano
1 sibling, 1 reply; 5+ messages in thread
From: Shawn O. Pearce @ 2008-01-21 4:08 UTC (permalink / raw)
To: Blucher, Guy; +Cc: git
"Blucher, Guy" <Guy.Blucher@dsto.defence.gov.au> wrote:
> I've just setup a commit-msg hook in my local repository. It works as
> advertised from the command-line when using git commit, but if I use git
> gui to do the commit, then the hook is ignored.
Fixed in my latest git-gui master, which will be gitgui-0.9.2 or .3.
I apparently missed git 1.5.4-rc4, but will have to ask Junio nicely
if this can be included into 1.5.4 final.
--
Shawn.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git gui and commit-msg hook
2008-01-21 4:08 ` Shawn O. Pearce
@ 2008-01-21 4:32 ` Junio C Hamano
2008-01-21 4:39 ` Shawn O. Pearce
0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2008-01-21 4:32 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Blucher, Guy, git
"Shawn O. Pearce" <spearce@spearce.org> writes:
> "Blucher, Guy" <Guy.Blucher@dsto.defence.gov.au> wrote:
>> I've just setup a commit-msg hook in my local repository. It works as
>> advertised from the command-line when using git commit, but if I use git
>> gui to do the commit, then the hook is ignored.
>
> Fixed in my latest git-gui master, which will be gitgui-0.9.2 or .3.
>
> I apparently missed git 1.5.4-rc4, but will have to ask Junio nicely
> if this can be included into 1.5.4 final.
Absolutely. That's a consistency-and-usability bugfix, isn't
it?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git gui and commit-msg hook
2008-01-21 4:32 ` Junio C Hamano
@ 2008-01-21 4:39 ` Shawn O. Pearce
0 siblings, 0 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2008-01-21 4:39 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Blucher, Guy, git
Junio C Hamano <gitster@pobox.com> wrote:
> "Shawn O. Pearce" <spearce@spearce.org> writes:
>
> > "Blucher, Guy" <Guy.Blucher@dsto.defence.gov.au> wrote:
> >> I've just setup a commit-msg hook in my local repository. It works as
> >> advertised from the command-line when using git commit, but if I use git
> >> gui to do the commit, then the hook is ignored.
> >
> > Fixed in my latest git-gui master, which will be gitgui-0.9.2 or .3.
> >
> > I apparently missed git 1.5.4-rc4, but will have to ask Junio nicely
> > if this can be included into 1.5.4 final.
>
> Absolutely. That's a consistency-and-usability bugfix, isn't
> it?
I consider it a bug fix for git-gui, but some may say its a new
feature since git-gui didn't have a commit-msg hook before this
change. :)
Anyway, its now published on repo.or.cz if you want to include
it into your next published git.git master to try and get it
some more testing before 1.5.4 goes final.
I'm pretty happy with what's in my master right now. I'm actually
tempted to tag it gitgui-0.9.2 and say that's the final version
we're including in 1.5.4.
--
Shawn.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-21 4:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <054F21930D24A0428E5B4588462C7AEDC5F8DB@ednex512.dsto.defence.gov.au>
2008-01-16 23:13 ` git gui and commit-msg hook Blucher, Guy
2008-01-18 4:12 ` Shawn O. Pearce
2008-01-21 4:08 ` Shawn O. Pearce
2008-01-21 4:32 ` Junio C Hamano
2008-01-21 4:39 ` Shawn O. Pearce
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).