{"thread":{"id":"15374","subject":"prepare-commit-msg hook and git gui","startedAt":"2008-09-04T18:06:56Z","lastAt":"2008-09-04T18:38:37Z","messageCount":2,"participants":["Joshua Williams","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"89775","messageId":"48C023C0.10306@qlogic.com","threadId":"15374","inReplyTo":null,"subject":"prepare-commit-msg hook and git gui","fromName":"Joshua Williams","fromEmail":"joshua.williams@qlogic.com","sentAt":"2008-09-04T18:06:56Z","receivedAt":"2008-09-04T18:06:56Z","isPatch":false,"sender":{"key":"joshua.williams@qlogic.com","avatar":null},"body":"I've created a prepare-commit-msg hook that composes a basic\ntemplate needed to be filled out by users doing a commit.  When\nI issue a 'git commit' it works great.  However, if I use 'git gui'/\n'git citool' then the template never appears in the \"commit\nmessage\".  It appears that the prepare-commit-msg hook is\neither not run while invoking git gui or git gui is not properly\ndisplaying the generated commit message in the commit\nmessage pain.  Is there some git gui configuration that needs to\nbe done to accomplish this?  Is this a git gui bug?  Or is it\nsimply some kind of driver error?\n\nThe commit-msg hook does appear to be run after hitting the\ncommit button in git gui and git gui does display the proper\noutput from the commit-msg hook.  It appears that this is a\nprepare-commit-msg only issue...\n\nThanks for any info!\n\n- Josh\n"},{"id":"89777","messageId":"20080904183837.GE23708@spearce.org","threadId":"15374","inReplyTo":"48C023C0.10306@qlogic.com","subject":"Re: prepare-commit-msg hook and git gui","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-09-04T18:38:37Z","receivedAt":"2008-09-04T18:38:37Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Joshua Williams <joshua.williams@qlogic.com> wrote:\n>\n> The commit-msg hook does appear to be run after hitting the\n> commit button in git gui and git gui does display the proper\n> output from the commit-msg hook.  It appears that this is a\n> prepare-commit-msg only issue...\n\ngit-gui does not invoke the prepare-commit-msg hook.  So it\ncannot display its output for you.\n\nPatches are welcome.  ;-)\n\n-- \nShawn.\n"}]}