diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-19 17:19:42 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-19 17:19:42 -0400 |
commit | bb0b8efa06e504a5b82dbc0fb5f22721701dcb42 (patch) | |
tree | bf66edf6e1b91a5008f08b2b3c202a54ce2aa3e3 /pbs-package-commit | |
parent | 93cb6dddc415e481e52bdd5f0b379b7ea811dcf2 (diff) |
split pbs-package-commit into pbs-package-{post,}commit, and fix it
Diffstat (limited to 'pbs-package-commit')
-rwxr-xr-x | pbs-package-commit | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/pbs-package-commit b/pbs-package-commit index 0f52401..7af6fc5 100755 --- a/pbs-package-commit +++ b/pbs-package-commit @@ -7,8 +7,11 @@ usage() { echo "Usage: $cmd [git-commit OPTIONS]" echo 'Commits to a package (run from the package directory).' echo '' - echo 'This is the same as `git commit`, but cascades up out of the' - echo 'submodule.' + echo 'This is like `git commit`, but cascades up out of the submodule.' + echo 'It is simply:' + echo + echo ' git commit "$@"' + echo ' pbs-package-postcommit' echo '' echo 'Options:' echo ' -h Show this message' @@ -26,13 +29,7 @@ main() { ensure_in_pbs-package git commit "$@" - git push - local msg="$(git log -n1 --pretty=format:%B)" - local dir="$(pwd)" - - cdto_pbs-root - git add "${dir##*/}" - git commit -m "$msg" + pbs-package-postcommit } main "$@" |