Whamcloud - gitweb
LU-1053 build: allow deleted/chmod in commit-msg
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 29 Jan 2012 07:20:45 +0000 (00:20 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Feb 2012 19:38:31 +0000 (14:38 -0500)
commit9fd0df600f0556877174ff31d8da3a232e37d815
tree9e754ad56b734d3e35ae76787d08a540fa1dd917
parent864516e29129cb209435b4cc3ba513a9f453d383
LU-1053 build: allow deleted/chmod in commit-msg

Allow files that were deleted or chmod when verifying a commit
message that contains a diff generated with "commit -v".  The
checks added for excluding the diff were previously too strict.
Add a test case for each of these situations, as well as a case
for a commit message that contains "diff" at the start of a line
in the middle of a commit message.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I74fe98682342e445da7fe64fd42e91df4564500c
Reviewed-on: http://review.whamcloud.com/2053
Reviewed-by: Bruce Korb <bruce_korb@xyratex.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
build/commit-msg
build/commit.ok_chmod [new file with mode: 0644]
build/commit.ok_deleted [new file with mode: 0644]
build/commit.ok_diff [new file with mode: 0644]
build/test-commit-msg.sh