diff --git a/zshrc b/zshrc index 70f9a3d..eabd440 100644 --- a/zshrc +++ b/zshrc @@ -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: