diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2021-08-27 11:29:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2021-08-27 11:29:56 +0100 |
commit | 1b5b1577d8e2af1182404a07f9d1d85ea794e244 (patch) | |
tree | 1927d827c493b3a463de53ea42f49fa546f8363b /bashrc | |
parent | Simplify gitdc (diff) | |
download | util-1b5b1577d8e2af1182404a07f9d1d85ea794e244.tar.bz2 util-1b5b1577d8e2af1182404a07f9d1d85ea794e244.tar.xz util-1b5b1577d8e2af1182404a07f9d1d85ea794e244.zip |
Function to show differences on a branch
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |