From: Junio C Hamano Date: Sat, 01 Jul 2017 20:31:37 GMT Subject: Re: [PATCH] hooks: add signature to the top of the commit message Message-ID: In-Reply-To: <1498935127.11617.1.camel@gmail.com> Kaartic Sivaraam writes: > On Sat, 2017-07-01 at 10:36 -0700, Junio C Hamano wrote: >> Actually I was wondering if it is a good idea to remove it, as it >> seems to have outlived its usefulness. > It does seem to be a good idea but it would leave the 'prepare-commit- > msg' hook with no scripts that could be used by just activating it. > That's why I thought of adding a script that removes the "Please enter > your.." message from the comments if it exists. That sounds like a sample that is there not because it would be useful, but because we couldn't think of any useful example. IOW, I view it just as useful as a sample that does #!/bin/sh echo "# useless cruft" >>"$1" whose sole value is to demonstrate that you could affect what you see in the editor by modifying "$1".