{"thread":{"id":"41888","subject":"gitk and hook script","startedAt":"2016-03-31T17:06:39Z","lastAt":"2016-03-31T17:06:39Z","messageCount":1,"participants":["Romaric Crailox"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"282345","messageId":"CACRny=SO+EpYZhb_hbyJiAcN=hGCeHR4znh7+uiBHgRuGih6yw@mail.gmail.com","threadId":"41888","inReplyTo":null,"subject":"gitk and hook script","fromName":"Romaric Crailox","fromEmail":"romaric.crailox@gmail.com","sentAt":"2016-03-31T17:06:39Z","receivedAt":"2016-03-31T17:06:39Z","isPatch":false,"sender":{"key":"romaric.crailox@gmail.com","avatar":null},"body":"Hello\n\nI want to deploy a hook script to control format of commit message.\nFor this I use the prepare-commit-msg script.\nI want to check if the commit message starts with a number of 3\ndigits. If this is the case, the script returns 0, otherwise 1.\nIt works fine for an utilisation with the git command, but it doesn't\nwhen used with gitk. When script returns 1, the commit is not aborded.\nI don't manage to display message either (an information message\nexplaining why commit will be abort).\n\nIs there a way to use hook script with gitk?\n\nThanks.\n\nCRAILOX Romaric\n\nPS: I use git version 1.8.5.3\n"}]}