From: Alex Riesen Date: Fri, 18 Jan 2008 19:05:09 GMT Subject: Re: [PATCH] git-commit: add a prepare-commit-msg hook Message-ID: <20080118190509.GA3411@steel.home> In-Reply-To: <4790BCED.4050207@gnu.org> Paolo Bonzini, Fri, Jan 18, 2008 15:51:25 +0100: > + if (!edit_message) { > + run_hook(index_file, "prepare-commit-msg", git_path(commit_editmsg)); > + } > launch_editor(git_path(commit_editmsg), NULL, env); "preedit-new-commit-msg", perhaps. A "prepare-" suggests it is called every time, even if no editor is specified, which it is not. And it really does look like a template...