summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBitKeeper/triggers/pre-delta12
1 files changed, 12 insertions, 0 deletions
diff --git a/BitKeeper/triggers/pre-delta b/BitKeeper/triggers/pre-delta
new file mode 100755
index 00000000000..68c0ec30107
--- /dev/null
+++ b/BitKeeper/triggers/pre-delta
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ `tail -c1 $BK_FILE` != "
+" ]
+then
+ echo "File $BK_FILE does not end with a new-line character!"
+ echo ""
+ echo "Checkin FAILED!"
+ echo "Fix the problem and retry."
+ exit 1
+fi
+