diff options
| author | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2025-09-16 21:42:03 +0200 |
|---|---|---|
| committer | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2025-09-16 21:42:03 +0200 |
| commit | 522a443a5f92d9fef3380ed470ead88f00ec5659 (patch) | |
| tree | d1492bf3beb968b5efd00182ed2592d8aff0932c | |
| parent | 6ef4394920ad0aa61eff8b7c9cd70fed519a42c0 (diff) | |
| download | future-me-522a443a5f92d9fef3380ed470ead88f00ec5659.tar.gz future-me-522a443a5f92d9fef3380ed470ead88f00ec5659.zip | |
future-me.sh: rename mr-todo to future-me
| -rwxr-xr-x | future-me.sh | 14 |
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() { |
