From 1b5b1577d8e2af1182404a07f9d1d85ea794e244 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 11:29:56 +0100 Subject: Function to show differences on a branch --- bashrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 58998b5..3492cfc 100644 --- a/bashrc +++ b/bashrc @@ -166,6 +166,10 @@ gitd() { gitdc() { gitd "--cached $@" } +showdiff() { + local feat=${1-HEAD} target=${2-origin/master} + diffWith "git diff $target...$feat -w -D -M --patience --find-copies-harder" +} gppdmb() { PARENT=${1:-master} git checkout $PARENT && git pull --prune && git delete-merged-branches -- cgit v1.2.3