zshrc: git add -u, but ignore whitespaces.

This commit is contained in:
giomba 2022-04-22 09:28:17 +02:00
parent 57b28ca26b
commit 5d7bc57ece
1 changed files with 5 additions and 0 deletions

5
zshrc
View File

@ -3833,6 +3833,11 @@ alias xopen='xdg-open'
# but holy cow who is the idiot who localizes programming tools?
alias git='LANG=en_US.UTF-8 git'
# git add -u, but ignore whitespaces
gitadduw() {
git diff -U0 -w --no-color | git apply --cached --ignore-whitespace --unidiff-zero -
}
## END OF FILE #################################################################
# vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4
# Local variables: