An alias for bash
gitdiff() {
git diff --patience --ignore-space-at-eol -b -w --ignore-blank-lines $1
} gitdiff() {
git diff --patience --ignore-space-at-eol -b -w --ignore-blank-lines $1
}This one is simple enough to be defined as an alias:
alias gitdiff='git diff --patience --ignore-space-at-eol -b -w --ignore-blank-lines'
This[1] discusses aliases vs functions (just to make my reply a bit more useful [may be not for you, but in general] and to me feel less guilty.)[1] http://unix.stackexchange.com/questions/30925/in-bash-when-t...
Also, you're only accepting one argument, where there could be many depending on your refspec and path.
[alias]
df = diff --patience --ignore-space-at-eol -b -w --ignore-blank-lines