define die() for scripts that use it.
[gitweb.git] / git-add.sh
index b5fe46aa20865d6785390fd22406d32b00a77845..fdec86d1a41af847f9d737a2c058e2d2027f32fe 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+die () {
+    echo >&2 "$*"
+    exit 1
+}
+
 usage() {
     die "usage: git add [-n] [-v] <file>..."
 }