Well, I presently use an alias of the form
where I have an alias as
Code:
[alias]
wdiff = diff --color-words
Therefore my command is equivalent indeed to
Code:
git diff --color-words old..new
However, I would like to not use an alias (for example because I'd have to change some scripts) and just use
and I was hoping that there could be a global variable that I can set on ~/.gitconfig that would add automatically the --color-words clause. Just as is the case if you want to add the --color clause by having color.diff=auto.
I'm sorry for not spelling everything in the original post.
Cheers,
R.
Edit. Just in case someone reads this thread at some point later. If you want to have an alias for a git command, it is much better to put it in your ~/.gitconfig file under the [alias] clause as I posted here instead of a strange alias in bashrc. On the one hand cause it doesn't need to be in memory all time. On the other cause that way you can still use git as the first command. Note that the suggestion in post #2 would've been quite strange when you try "git pull" for example