This commit is contained in:
Arthur Moura Carvalho 2025-12-08 08:41:02 -08:00 committed by GitHub
commit 316fa4a0c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -90,6 +90,7 @@ plugins=(... git)
| `gdup` | `git diff @{upstream}` | | `gdup` | `git diff @{upstream}` |
| `gdnolock` | `git diff $@ ":(exclude)package-lock.json" ":(exclude)\*.lock"` | | `gdnolock` | `git diff $@ ":(exclude)package-lock.json" ":(exclude)\*.lock"` |
| `gdt` | `git diff-tree --no-commit-id --name-only -r` | | `gdt` | `git diff-tree --no-commit-id --name-only -r` |
| `gdss` | `git diff --shortstat $(git_main_branch)..$(git_current_branch)` |
| `gf` | `git fetch` | | `gf` | `git fetch` |
| `gfa` | `git fetch --all --tags --prune` | | `gfa` | `git fetch --all --tags --prune` |
| `gfo` | `git fetch origin` | | `gfo` | `git fetch origin` |

View file

@ -217,6 +217,7 @@ alias gdca='git diff --cached'
alias gdcw='git diff --cached --word-diff' alias gdcw='git diff --cached --word-diff'
alias gds='git diff --staged' alias gds='git diff --staged'
alias gdw='git diff --word-diff' alias gdw='git diff --word-diff'
alias gdss="git diff --shortstat $(git_main_branch)..$(git_current_branch)"
function gdv() { git diff -w "$@" | view - } function gdv() { git diff -w "$@" | view - }
compdef _git gdv=git-diff compdef _git gdv=git-diff