From 4564558bce00623f7efd04eeb968a6cce9b56fa4 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Tue, 9 Oct 2012 11:03:28 -0500 Subject: [PATCH] Added gdc - grep diff file changes between commits --- git/gitconfig.symlink | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index 266f8c0..46c2818 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -31,6 +31,8 @@ # 'diff grep' dg = "!sh -c 'git ls-files -m | grep $1 | xargs git diff' -" + # diff grep changes between two commits + dgc = "!sh -c 'git ls-files -m | grep $1 | xargs git diff $2 $3 -- ' -" # 'checkout grep' cg = "!sh -c 'git ls-files -m | grep $1 | xargs git checkout ' -" # add grep