]> Sergey Matveev's repositories - dotfiles.git/commitdiff
git --oneline includes --abbrev-commit
authorSergey Matveev <stargrave@stargrave.org>
Thu, 5 Nov 2020 21:02:15 +0000 (00:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 5 Nov 2020 21:02:15 +0000 (00:02 +0300)
zsh/.zshrc

index 0210c727b7203a0745001831a3091dfa2fc5b146..62ec28c8439af6bc96fc9faf68a5dc074332749c 100644 (file)
@@ -123,10 +123,9 @@ alias Gs="git show --show-signature"
 alias Gm="git diff --name-only --diff-filter=M"
 alias Gam="git commit --amend"
 
-git_common="--oneline --abbrev-commit"
-alias Gl="git log $git_common --graph --decorate=short"
-alias Gr="git --no-pager log $git_common -n 20 | perl -ne 'print \"@~\$n \$_\"; \$n++'"
-alias Grr="git --no-pager log $git_common --graph -n 1024 | vi -c 'setlocal filetype=gitrebase buftype=nofile noswapfile' -"
+alias Gl="git log --oneline --graph --decorate=short"
+alias Gr="git --no-pager log --oneline -n 20 | perl -ne 'print \"@~\$n \$_\"; \$n++'"
+alias Grr="git --no-pager log --oneline --graph -n 1024 | vi -c 'setlocal filetype=gitrebase buftype=nofile noswapfile' -"
 
 bindkey -s "\eOR" " git status --short\n" # F3
 # }}}