Respect core.autocrlf when preparing temporary files for external diffv1.6.2.1.msysgit.0
commitf7512386097c4f20e3c147e5de8888e49e4835c5
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 21 Mar 2009 00:20:57 +0000 (21 01:20 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 22 Mar 2009 19:21:24 +0000 (22 20:21 +0100)
tree79d92af9f7abbf7141b8bf5606a7269ee687e536
parent3db39264cd3334ae5e9ab933f0298540bbe389a5
Respect core.autocrlf when preparing temporary files for external diff

When preparing temporary files for an external diff, the files should be
handled as if they were worktree files.

This makes things consistent for the case when one side of the diff was
found in the current working directory (and therefore creating a temporary
file could be avoided altogether).

This fixes msysGit issue 177.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
diff.c
t/t4020-diff-external.sh