You can run this command to have the expected behaviour:
git -c core.whitespace=cr-at-eol show
git -c
allows you to override configuration parameters for the current command (it's not saved in the config).
If you want to read more about git -c
: https://git-scm.com/docs/git#Documentation/git.txt--cltnamegtltvaluegt