glogas: add ref
This commit is contained in:
parent
f51e10153f
commit
f83c79032d
1 changed files with 6 additions and 6 deletions
12
.bash_extra
12
.bash_extra
|
@ -207,12 +207,12 @@ function glogs {
|
||||||
# https://git-scm.com/docs/pretty-formats
|
# https://git-scm.com/docs/pretty-formats
|
||||||
# https://stackoverflow.com/questions/3631005/git-log-tabular-formatting
|
# https://stackoverflow.com/questions/3631005/git-log-tabular-formatting
|
||||||
# https://stackoverflow.com/questions/7736781/how-to-make-git-log-not-prompt-to-continue
|
# https://stackoverflow.com/questions/7736781/how-to-make-git-log-not-prompt-to-continue
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
ncommits=30
|
ncommits=30;
|
||||||
else
|
else
|
||||||
ncommits="$1"
|
ncommits="$1";
|
||||||
fi
|
fi;
|
||||||
git --no-pager log --pretty=format:'%C(auto) %<|(16,trunc)%h %<|(60,trunc)%s %Cgreen%cr%Creset by %Cblue%an%Creset' --graph --all -$ncommits
|
git log --pretty=format:'%C(auto) %<|(16,trunc)%h %Cred %G?%Creset %<|(60,trunc)%s %<(20,trunc)%Cgreen%cr%Creset %<(15,trunc)%Cblue%an%Creset %Cred%D' --graph --all -$ncommits
|
||||||
}
|
}
|
||||||
### Aliase
|
### Aliase
|
||||||
# tmux
|
# tmux
|
||||||
|
|
Loading…
Reference in a new issue