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

5
zshrc
View File

@ -3833,6 +3833,11 @@ alias xopen='xdg-open'
# but holy cow who is the idiot who localizes programming tools? # but holy cow who is the idiot who localizes programming tools?
alias git='LANG=en_US.UTF-8 git' 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 ################################################################# ## END OF FILE #################################################################
# vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4 # vim:filetype=zsh foldmethod=marker autoindent expandtab shiftwidth=4
# Local variables: # Local variables: