Commit 769f31b
committed
astextplain: restore passthrough for plaintext DOC/DOT files
The fix for git-for-windows/git#5641 broke
diffs for plaintext DOC and DOT files:
$ echo Test > test.doc
$ git add test.doc
$ git diff --cached
E: unsupported filetype test.doc
Since `file` correctly identifies the mimetype of such files as
`text/plain`, this can be fixed by simply covering this case and
printing the file content as it was done previously.
Signed-off-by: Claudio Hoffmann <[email protected]>1 parent 8d7eba8 commit 769f31b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments