Skip to content

astextplain: restore passthrough for plaintext DOC/DOT files #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

ClaudioHoffmann
Copy link
Contributor

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.

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 <c.hoffmann@dev-threads.de>
@dscho
Copy link
Member

dscho commented Jun 23, 2025

Thank you for the contribution! The checksums were incorrect, though, and unfortunately I lack the permission to fix it in this PR, therefore I opened #628.

@dscho dscho merged commit d90bdff into git-for-windows:main Jun 23, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants