.sh

Multi-shell dotfiles manager
Log | Files | Refs | README | LICENSE

commit f9bab839c96a5362c5472c42b640edbe0e66616c
parent 73b3af39aa56128f24f2d866923c3adc61632848
Author: Byron Torres <b@torresjrjr.com>
Date:   Sun, 23 May 2021 17:18:21 +0100

New gitl, gitll, gitlf aliases

'gitl' becomes 'gitlf', printing the commit tree from and including the
last common commit.

'gitl' and 'gitll' revert to their old behaviour, printing 10 and all
commits as a commit log respectively.

Diffstat:
Msh/.rc.sh | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sh/.rc.sh b/sh/.rc.sh @@ -30,8 +30,11 @@ alias grep='grep --color=auto' alias gits='git status -s' alias gitss='git status -v' +alias gitl='git log --oneline --decorate --graph --all -10' alias gitll='git log --oneline --decorate --graph --all' -alias gitl='gitll HEAD origin/HEAD $(git merge-base HEAD origin/HEAD)^!' +alias gitlf='git log --oneline --decorate --graph --color \ + HEAD origin/HEAD "$(git merge-base HEAD origin/HEAD)^!" +' ## Functions @@ -64,7 +67,7 @@ gitf() { echo ">>>" git fetch echo "<<<" - gitl + gitlf echo "---" git status }