Whamcloud - gitweb
LU-1053 build: add test for commit-msg with diff
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 9 Jul 2012 23:16:45 +0000 (17:16 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Aug 2012 01:47:30 +0000 (21:47 -0400)
Add a test case for the build/commit-msg script with "diff" at the
start of an intermediate line, which should not be ignored.  This
needs to be distinguished from the start of "git commit -av" output
which has a full "git diff" of the output inline with the commit.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Icf2399568437de7f9e23419386bf3b1b99ebbfd1
Reviewed-on: http://review.whamcloud.com/3363
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bruce Korb <bruce_korb@xyratex.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
build/commit.ok_diffinside [new file with mode: 0644]

diff --git a/build/commit.ok_diffinside b/build/commit.ok_diffinside
new file mode 100644 (file)
index 0000000..fa53055
--- /dev/null
@@ -0,0 +1,8 @@
+LU-1030 build: allow diff/chmod/deleted in commit-msg
+When we write a commit body, sometimes there may be a line with
+diff right at the beginning.  This shouldn't cause the rest of
+the commit message to be skipped.
+Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
+Change-Id: I012345678901234567890123456789012345500c