Re: [PATCH] hooks: add signature to the top of the commit message
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 1, 2017, 20:31 UTC
- Message-ID
- <xmqqy3s7nbkm.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1498935127.11617.1.camel@gmail.com>
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:
Show 7 quoted lines
> 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".