aboutsummaryrefslogtreecommitdiff
path: root/repo/git/cpt-commit
diff options
context:
space:
mode:
Diffstat (limited to 'repo/git/cpt-commit')
-rwxr-xr-xrepo/git/cpt-commit5
1 files changed, 5 insertions, 0 deletions
diff --git a/repo/git/cpt-commit b/repo/git/cpt-commit
new file mode 100755
index 0000000..ae0315a
--- /dev/null
+++ b/repo/git/cpt-commit
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Commit a package without the prefix of 'package:'
+
+[ "$1" ] || { printf 'usage: %s <commit-msg without package name>\n' "${0##*/}"; exit 0 ;}
+git reset; git add .; git commit -m "${PWD##*/}: $*"