Adding super-spiffy 'lg' command to the Git plugin, to generate a colour-coded Git log with relative dates and a tree graph.

This commit is contained in:
Graeme West 2011-07-05 15:57:07 +01:00
commit 90beeb9836

View file

@ -29,6 +29,8 @@ alias glg='git log --stat --max-count=5'
compdef _git glg=git-log
alias glp='git log --pretty=short --graph'
compdef _git glp=git-log
alias lg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
compdef _git lg="git-log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
# Git and svn mix
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'