From 1180a459419f1a6a4590631b32ec849c87c2f874 Mon Sep 17 00:00:00 2001 From: listout Date: Mon, 27 Sep 2021 15:21:37 +0530 Subject: git stat alias --- .gitconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig index 7910aa5..404f538 100644 --- a/.gitconfig +++ b/.gitconfig @@ -13,3 +13,11 @@ [user] email = listout@protonmail.com name = listout +[alias] + # list files which have changed since REVIEW_BASE + # (REVIEW_BASE defaults to 'master' in my zshrc) + files = !git diff --name-only $(git merge-base HEAD \"$REVIEW_BASE\") + + # Same as above, but with a diff stat instead of just names + # (better for interactive use) + stat = !git diff --stat $(git merge-base HEAD \"$REVIEW_BASE\") -- cgit v1.2.3