From 4fd31ba99801e2fdd50cc1a22809c21258cf141f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 2 Nov 2015 21:17:10 -0800 Subject: [PATCH] git fdiff --- dotfiles/gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index 479f3b42..70a9e155 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -14,6 +14,7 @@ d = "!d() { git icdl $@; }; d" db = !"db() { git diff HEAD~"$1"; }; db" diff-excluding = "!f() { exclude=$1; shift; git diff $1 $2 --name-only | grep -v $exclude | xargs git diff "$@" --; }; f" + fdiff = "!f() { filter=\"$1\"; shift; git diff $1 $2 --name-only | $filter | xargs git diff "$@" --; }; f" dirty = "!t() { test -n \"$(git status --porcelain)\"; }; t" dtbmb = !git diff `git tb`...HEAD # diff tracking branch merge base du = "!d() { git ls-files $1 --error-unmatch 2>/dev/null 1>/dev/null && git diff $1 || `git config --get core.pager` $1; }; d" # Diff a file or show it in git's pager if it is untracked