This commit is contained in:
Arthur Moura Carvalho 2026-01-20 05:15:23 -03:00 committed by GitHub
commit 6e232e6607
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}` |
| `gdnolock` | `git diff $@ ":(exclude)package-lock.json" ":(exclude)\*.lock"` |
| `gdt` | `git diff-tree --no-commit-id --name-only -r` |
| `gdss` | `git diff --shortstat $(git_main_branch)..$(git_current_branch)` |
| `gf` | `git fetch` |
| `gfa` | `git fetch --all --tags --prune` |
| `gfo` | `git fetch origin` |

View file

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