From 4550439b623168b3ab4f99bfbe009b0fbb3b6996 Mon Sep 17 00:00:00 2001 From: swytch Date: Sat, 20 Jun 2020 00:02:49 +0200 Subject: [PATCH] feat: add flags to `dot` add `git branch`, `git show` and `git log --graph` commands --- .local/bin/dot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.local/bin/dot b/.local/bin/dot index e526e30..0efc985 100755 --- a/.local/bin/dot +++ b/.local/bin/dot @@ -16,6 +16,7 @@ cmd="$git status" # by default, give the status [ "$1" = "-g" ] && shift && cmd="$git $@" # make the wrapper transparent [ "$1" = "-l" ] && shift && cmd="$git log" +[ "$1" = "-lg" ] && shift && cmd="$git log --graph --format=short" [ "$1" = "-c" ] && shift && cmd="$git commit $@" [ "$1" = "-ca" ] && shift && cmd="$git commit -a" [ "$1" = "-cas" ] && shift && cmd="$git commit -S --amend $@" @@ -24,6 +25,8 @@ cmd="$git status" # by default, give the status [ "$1" = "-ps" ] && shift && cmd="$git push $@" [ "$1" = "-pl" ] && shift && cmd="$git pull" [ "$1" = "-a" ] && shift && cmd="$git add $@" +[ "$1" = "-b" ] && shift && cmd="$git branch $@" +[ "$1" = "-s" ] && shift && cmd="$git show $@" [ "$1" = "-rm" ] && shift && cmd="$git rm --cached $@" [ "$1" = "-rb" ] && shift && cmd="$git rebase $@" [ "$1" = "-rbi" ] && shift && cmd="$git rebase -i $@"