aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfuture-me.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/future-me.sh b/future-me.sh
index 8da9406..5169556 100755
--- a/future-me.sh
+++ b/future-me.sh
@@ -4,12 +4,12 @@ set -x
# First of all as we are using git update-index and don't want to mess arround with saving the current state
# We check if there is any staged files
check-git-status() {
- git status --porcelain | grep -e ^A -e ^M && echo "You first need to clean you git staging status to use mr-todo" && exit 1
+ git status --porcelain | grep -e ^A -e ^M && echo "You first need to clean you git staging status to use future-me" && exit 1
}
create-new-bug() {
readonly bug="$1"
- last_ref=$(git show-ref refs/notes/devtools/mr-todo | cut -d ' ' -f 1)
+ last_ref=$(git show-ref refs/notes/devtools/future-me | cut -d ' ' -f 1)
echo $last_ref
if [ -n "$last_ref" ]
then
@@ -28,16 +28,16 @@ create-new-bug() {
if [ -n "$last_ref" ]
then
add_parent="$last_ref"
- commit_id=$(echo 'mr-todo: created a new bug for you' | git commit-tree $tree_id -p $add_parent)
+ commit_id=$(echo 'future-me: created a new bug for you' | git commit-tree $tree_id -p $add_parent)
else
- commit_id=$(echo 'mr-todo: created a new bug for you' | git commit-tree $tree_id)
+ commit_id=$(echo 'future-me: created a new bug for you' | git commit-tree $tree_id)
fi
- git update-ref refs/notes/devtools/mr-todo $commit_id
+ git update-ref refs/notes/devtools/future-me $commit_id
}
show-bugs() {
- #git ls-tree --full-tree -r refs/notes/devtools/mr-todo
- for i in $(git ls-tree --full-tree -r refs/notes/devtools/mr-todo | cut -d ' ' -f 3 | cut -f 1 | tr '\n' ' '); do git cat-file -p $i ; done
+ #git ls-tree --full-tree -r refs/notes/devtools/future-me
+ for i in $(git ls-tree --full-tree -r refs/notes/devtools/future-me | cut -d ' ' -f 3 | cut -f 1 | tr '\n' ' '); do git cat-file -p $i ; done
}
main() {