From 0583b0250f620214412a7be5c3ea2c0a5777e28f Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Wed, 3 Feb 2016 09:52:59 -0600 Subject: [PATCH] clean up git log aliases * remove seldom used `git lg` alias * update colors/format of `git l` alias * update zsh alias `glog` to use `git l` instead of its own thing --- git/gitconfig.symlink | 4 +--- zsh/git.zsh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index 20f9c6d..68c5659 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -18,9 +18,7 @@ ss = status br = branch -v - l = log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative - # show a pretty log graph - lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' + l = log --graph --pretty=format:'%Cred%h%Creset %C(bold blue)%an%C(reset) - %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative # show what I did today day = "!sh -c 'git log --reverse --no-merges --branches=* --date=local --after=\"yesterday 11:59PM\" --author=\"`git config --get user.name`\"'" diff --git a/zsh/git.zsh b/zsh/git.zsh index 8384ebf..e576b3f 100644 --- a/zsh/git.zsh +++ b/zsh/git.zsh @@ -11,7 +11,7 @@ alias gsp='git stash pop' alias gmv='git mv' alias grm='git rm' alias grn='git-rename' -alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" +alias glog="git l" # alias git-amend='git commit --amend -C HEAD' alias git-undo='git reset --soft HEAD~1'