0

This script will do the job, at least as long escape sequences are as expected. Call it e.g. as git-diff-word-context -U 5. It accepts all arguments git diff would accept and intercepts -U (respectively --unified=) to set the number of characters.
It just utilises grep to fulfil the task:
#!/usr...