mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-09 15:05:16 +02:00
git: add alias for git diff excluding lock files (#8935)
This commit is contained in:
committed by
GitHub
parent
10538d1105
commit
255ef8d587
@ -86,6 +86,11 @@ alias gds='git diff --staged'
|
||||
alias gdt='git diff-tree --no-commit-id --name-only -r'
|
||||
alias gdw='git diff --word-diff'
|
||||
|
||||
function gdnolock() {
|
||||
git diff "$@" ":(exclude)package-lock.json" ":(exclude)*.lock"
|
||||
}
|
||||
compdef _git gdnolock=git-diff
|
||||
|
||||
function gdv() { git diff -w "$@" | view - }
|
||||
compdef _git gdv=git-diff
|
||||
|
||||
|
Reference in New Issue
Block a user