Skip to content
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

You can browse the text content of the file online, but you cannot view the diff of the file. #33756

Open
yangyangdaji opened this issue Mar 1, 2025 · 0 comments
Labels

Comments

@yangyangdaji
Copy link

yangyangdaji commented Mar 1, 2025

I know github also has this problem, but this inconsistency should be fixed on gitea

Description

When viewing files with certain extensions (e.g. .reg), attempting to view diffs would trigger a "Binary file not shown" warning, indicating that binary file diff rendering is not supported. however, these same files display their text-based contents normally when viewed directly online.

Example

https://gitea.com/yangyangdaji/PeaZip/src/branch/sources/peazip-sources/res/share/lang-wincontext/chs.reg

Diff Warning Screenshot

Image

Screenshot of Text Content View

Image

Gitea Version

1.24.0+dev-319-gbc29c02e26

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

https://demo.gitea.com

Database

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant