hook: add a simple first example
commit0ef1a4e32a720928a497a13ef08aa8f0a63dc476
authorKaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Tue, 11 Jul 2017 14:30:54 +0000 (11 20:00 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jul 2017 20:21:07 +0000 (12 13:21 -0700)
treeffca643827a7d8163812c804dca663f08255a845
parente1a4a28373befdce97daf9702f6ab790c9806451
hook: add a simple first example

Add a simple example that replaces an outdated example
that was removed. This ensures that there's at the least
a simple example that illustrates what could be done
using the hook just by enabling it.

Also, update the documentation.

Signed-off-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/githooks.txt
templates/hooks--prepare-commit-msg.sample