From 90beeb983651fecd0d8767e5b375d05091b201f5 Mon Sep 17 00:00:00 2001 From: Graeme West Date: Tue, 5 Jul 2011 15:57:07 +0100 Subject: [PATCH] Adding super-spiffy 'lg' command to the Git plugin, to generate a colour-coded Git log with relative dates and a tree graph. --- plugins/git/git.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index d6e49154a..2fd67b278 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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'