[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] [PATCH] Add a commit message validation hook
From: |
Blake Kaplan |
Subject: |
[Monotone-devel] [PATCH] Add a commit message validation hook |
Date: |
Wed, 25 Jan 2006 19:31:34 -0800 |
I pulled this project right off of the quickies page (and if it
weren't for my lack of familiarity with the data structures and a
couple of typos, it would have been really quick). This adds a hook in
Lua that is called after the user has entered his/her commit message.
The hook gets the message, a table of the added, deleted, and modified
files and can veto by returning false and the reason.
I'm not thrilled about the fact that you have to return |true, ""| if
the message validates, but such is life. The default hook currently
disallows empty messages, since that's what monotone currently does,
but it could probably just as easily return true, "".
--
Blake Kaplan
validate-commit.diff
Description: Text Data
- [Monotone-devel] [PATCH] Add a commit message validation hook,
Blake Kaplan <=