From 130f35fcb2e175e28178f834b16e00f121319bc4 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 9 Sep 2021 19:16:15 +0200 Subject: [PATCH] feat(git): add `gdu` alias to diff against upstream (#8721) --- plugins/git/README.md | 1 + plugins/git/git.plugin.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/git/README.md b/plugins/git/README.md index 64c507345..e53d93b0b 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -66,6 +66,7 @@ plugins=(... git) | gds | git diff --staged | | gdt | git diff-tree --no-commit-id --name-only -r | | gdnolock | git diff $@ ":(exclude)package-lock.json" ":(exclude)*.lock" | +| gdu | git diff @{u} | | gdv | git diff -w $@ \| view - | | gdw | git diff --word-diff | | gf | git fetch | diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index d030d2801..76e0faed3 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -119,6 +119,7 @@ alias gdcw='git diff --cached --word-diff' alias gdct='git describe --tags $(git rev-list --tags --max-count=1)' alias gds='git diff --staged' alias gdt='git diff-tree --no-commit-id --name-only -r' +alias gdu='git diff @{u}' alias gdw='git diff --word-diff' function gdnolock() {