Render LFS text file on diff page #6747

Closed
opened 2025-11-02 07:05:26 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @lunny on GitHub (Jan 25, 2021).

Currently all LFS files are considered as binary files but in fact it's not true. We have implemented render LFS file on tree view, so in diff page, we should also implement it.

Originally created by @lunny on GitHub (Jan 25, 2021). Currently all LFS files are considered as binary files but in fact it's not true. We have implemented render LFS file on tree view, so in diff page, we should also implement it.
GiteaMirror added the type/enhancementissue/needs-feedback labels 2025-11-02 07:05:26 -06:00
Author
Owner

@delvh commented on GitHub (Jan 27, 2021):

To save on computing power, we could also implement a mechanism similar to that used by GitHub where, if a file is too large/ contains to many differences, then the user has too manually click on "Load File" - "Large diffs are not rendered by default"

@delvh commented on GitHub (Jan 27, 2021): To save on computing power, we could also implement a mechanism similar to that used by GitHub where, if a file is too large/ contains to many differences, then the user has too manually click on "Load File" - "Large diffs are not rendered by default"
Author
Owner

@wxiaoguang commented on GitHub (Apr 26, 2023):

If a file is put into LFS, I do not think we should touch it in the diff page.

Is it still a open proposal?

@wxiaoguang commented on GitHub (Apr 26, 2023): If a file is put into LFS, I do not think we should touch it in the diff page. Is it still a open proposal?
Author
Owner

@lunny commented on GitHub (Apr 27, 2023):

I think it's very difficult because LFS storage is very different from git data. There is no patch, we need a diff tool but it maybe very slow. I think maybe we can close this one.

@lunny commented on GitHub (Apr 27, 2023): I think it's very difficult because LFS storage is very different from git data. There is no patch, we need a diff tool but it maybe very slow. I think maybe we can close this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6747