Thread (5 messages) 5 messages, 2 authors, 2017-07-05

Re: [PATCH] hooks: add signature to the top of the commit message

flat view

From: Junio C Hamano <hidden>
Date: 2017-07-01 20:31:44

Possibly related (same subject, not in this thread)

Kaartic Sivaraam [off-list ref] writes:
On Sat, 2017-07-01 at 10:36 -0700, Junio C Hamano wrote:
quoted
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".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help