git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Romaric Crailox <romaric.crailox@gmail.com>
To: git@vger.kernel.org
Subject: gitk and hook script
Date: Thu, 31 Mar 2016 19:06:39 +0200	[thread overview]
Message-ID: <CACRny=SO+EpYZhb_hbyJiAcN=hGCeHR4znh7+uiBHgRuGih6yw@mail.gmail.com> (raw)

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

             reply	other threads:[~2016-03-31 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-31 17:06 Romaric Crailox [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-10-05  8:45 gitk and hook script GAUTHIER Geoffrey

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to='CACRny=SO+EpYZhb_hbyJiAcN=hGCeHR4znh7+uiBHgRuGih6yw@mail.gmail.com' \
    --to=romaric.crailox@gmail.com \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).