summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
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