From 1c06260fd1709edfe31fb146aa5a70cb645e8b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Sat, 13 Jul 2024 20:27:16 +0200 Subject: [PATCH] git: Improve review alias, add revieww --- .gitconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 173e94a..8a79818 100644 --- a/.gitconfig +++ b/.gitconfig @@ -45,7 +45,8 @@ rebb = rebase --autostash rem = remote -v remove-gone = "!git branch -av | grep -E '^[^\\+].*\\[gone]' | awk '{ print $1 }' | xargs git branch -D #" - review = "!git diff --color-words='\\w+|.' --color-moved=zebra $(git merge-base $(git default-branch) HEAD) ${@} #" + review = "!git diff --color-moved=zebra $(git merge-base $(git default-branch) HEAD)..HEAD" + revieww = review --color-words='\\w+|.' root = rev-parse --show-toplevel s = status shw = show --ignore-space-change --color-words='\\w+'