On Sun, 28 Feb 2010, Jeff King wrote:
On Sun, Feb 28, 2010 at 01:03:00PM +1300, Steven Drake wrote:
quoted
Add 'git commit --spell' to run a spell checker on commit log message.
The `commit.spell` configuration variable can be used to enable the spell
checker by default and can be turned off by '--no-spell'.
Isn't this exactly the sort of thing the commit-msg hook is for?
Plus as I have just found out all hooks are run with stdin as '/dev/null' so
there is no way of running an interactive command like 'ispell' from a hook!
--
Steven
1: Linux - will work for fish.
2: The Linux penguin - looks stuffed to the brim with herring.
( make your own conclusions )