Import version 0.1 of library git-commit
Improve documentation
Add changelog
Make commit function customizable
Make filling work WRT comments
Try to prevent session.el from saving positions in commit messages
Set `major-mode' to git-commit-mode

Otherwise "C-h m" will bug out

describe-mode: Symbol's function definition is void: git-commit

Signed-off-by: Kan-Ru Chen <koster@debian.org>
Check `session-mode-disable-list' before using it

The variable is not always available.

Signed-off-by: Kan-Ru Chen <koster@debian.org>
Put the pseudo headers apart from summary line

Since kernel style commit message will have <subsystem>: <summary>
summary line format, don't be confused with pseudo headers.

Signed-off-by: Kan-Ru Chen <koster@debian.org>
Use run-mode-hooks instead of run-hooks

This way after-change-major-mode-hook runs properly.
Use macros to expand the almost identical defuns

This was inspired by the rafl/func-gen branch.  Instead of using a
procedure to generate those functions, here the macro system seems to
be the right tool.

Signed-off-by: Kan-Ru Chen <koster@debian.org>
Font lock the diff if possible

When using git commit -v, it's useful to have the diff colorized by
diff-mode.

Signed-off-by: Julien Danjou <julien@danjou.info>
Run re-search-forward for git diff with noerror=t.

This ensures the rest of git-commit-mode (e.g., run-mode-hooks) will
successfully run even if no git diff was found.

Signed-off-by: Adeodato Simó <dato@net.com.org.es>
Improve font-locking of first line

* Allow whitespace and comments before the first line
* Font-lock the first line even if there is no second line
Turn off save-place in git-commit mode, if available
Add more file names to auto-mode-alist

Besides editing commit messages, git-commit-mode can also be used to
edit merge, notes, and tag messages.
Merge pull request #4 from petere/more-file-names

Add more file names to auto-mode-alist
Merge pull request #2 from DarwinAwardWinner/master

Improve font-locking of first line
Need require 'cl
Rename library git-commit to git-commit-mode