From 0a64132a4744e4e8e279bcb0db2891329bdf255b Mon Sep 17 00:00:00 2001 From: joshtch Date: Sun, 13 Apr 2014 18:29:14 -0400 Subject: [PATCH] Add 'gds' to visualize diff statistics Show in color the number of lines added to or deleted from each file. --- 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 9f7819df3..ca41e9aad 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -76,6 +76,8 @@ alias grh='git reset HEAD' alias grhh='git reset HEAD --hard' alias gclean='git reset --hard && git clean -dfx' alias gwc='git whatchanged -p --abbrev-commit --pretty=medium' +gds() { git diff --stat --color "$@" | cat } +compdef _git gds=git-diff #remove the gf alias #alias gf='git ls-files | grep'