All of lore.kernel.org
 help / color / mirror / Atom feed
* gitk and hook script
@ 2016-10-05  8:45 GAUTHIER Geoffrey
  0 siblings, 0 replies; 2+ messages in thread
From: GAUTHIER Geoffrey @ 2016-10-05  8:45 UTC (permalink / raw)
  To: git

Hello,

I want to deploy a hook script to control format of commit message. For this I use the prepare-commit-msg script.

I want to check if the commit message starts with a number of 3 digits. If this is the case, the script returns 0, otherwise 1.

It works fine for an utilisation with the git command, but it doesn't when used with gitk. When script returns 1, the commit is not aborded. I don't manage to display message either (an information message explaining why commit will be abort).

Is there a way to use hook script with gitk?

Thanks.

PS: I use git version 1.8.5.3
________________________________
 This electronic message and its attachments are confidential and transmitted for the exclusive use of their addressee. Should you receive this message by mistake, you are not authorized to use it for any purpose whatsoever; please delete it and notify the sender at once. LACROIX reserves the right to initiate any legal proceedings against any individual and organization in case of unauthorized use, without prejudice to possible criminal sanctions.
________________________________
 Ce message et ses pièces jointes sont confidentiels et exclusivement transmis à l'usage de leur destinataire. Si vous recevez ce message par erreur, vous n’êtes pas autorisés à en faire une quelconque utilisation ; merci de le détruire et d'en avertir immédiatement l'expéditeur. LACROIX se réserve le droit de poursuivre toute entité, personne physique ou morale qui en ferait un usage non autorisé, sans préjudice d'éventuelles sanctions pénales.

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

* gitk and hook script
@ 2016-03-31 17:06 Romaric Crailox
  0 siblings, 0 replies; 2+ messages in thread
From: Romaric Crailox @ 2016-03-31 17:06 UTC (permalink / raw)
  To: git

Hello

I want to deploy a hook script to control format of commit message.
For this I use the prepare-commit-msg script.
I want to check if the commit message starts with a number of 3
digits. If this is the case, the script returns 0, otherwise 1.
It works fine for an utilisation with the git command, but it doesn't
when used with gitk. When script returns 1, the commit is not aborded.
I don't manage to display message either (an information message
explaining why commit will be abort).

Is there a way to use hook script with gitk?

Thanks.

CRAILOX Romaric

PS: I use git version 1.8.5.3

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

end of thread, other threads:[~2016-10-05 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05  8:45 gitk and hook script GAUTHIER Geoffrey
  -- strict thread matches above, loose matches on Subject: below --
2016-03-31 17:06 Romaric Crailox

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.