-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove defunct commit helper utility."
This reverts commit 3a43238. This included working changes to `cursor.js`.
- Loading branch information
1 parent
3a43238
commit cb9ca44
Showing
4 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
abend() | ||
{ | ||
local message=$1 | ||
echo "fatal: $message" 1>&2 | ||
exit 1 | ||
} | ||
|
||
files=$(git ls-files -m | wc -l | tr -d ' ') | ||
|
||
[ "$files" -ne 1 ] && abend "only one modified file at a time please" | ||
|
||
file=$(git ls-files -m) | ||
node "$file" || abend "test is now failing" | ||
name=$(basename $file) | ||
|
||
case "$1" in | ||
tidy) | ||
git commit -a -m 'Tidy `'$file'`.'$'\n\nSee #351.' | ||
;; | ||
assert) | ||
git commit -a -m 'Use `assert` in `'$name'`.'$'\n\nSee #351.' | ||
;; | ||
vivify) | ||
git commit -a -m 'Use `vivify` in `'$name'`.'$'\n\nSee #352.' | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters