Commit f502a63
committed
astextplain: restore passthrough for empty files
Our astextplain helper used to pass through empty files and plaintext with the
an expected extension. WHen we changed it to work based on mimetype
rather than a predefined list of extensions in git-for-windows#624, both those passthroughs got
lost. Plaintext passthrough has been restored in git-for-windows#626, but passthrough
of empty files is still missing. Restore this functionality.
This fixes git-for-windows/git#5977
Signed-off-by: Matthias Aßhauer <mha1993@live.de>1 parent 2e98702 commit f502a63
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| 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