Add icon for LFS files in file explorer #12766

Open
opened 2025-11-02 10:20:20 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @owochle on GitHub (Mar 31, 2024).

Feature Description

It would be nice if gitea had a way to quickly find out which files are stored on lfs. It's quite a small change but it could be very handy.

Screenshots

image
Hugging face example

Originally created by @owochle on GitHub (Mar 31, 2024). ### Feature Description It would be nice if gitea had a way to quickly find out which files are stored on lfs. It's quite a small change but it could be very handy. ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/62758885/40ad38de-b28d-4b86-8271-307a47e2dddb) Hugging face example
GiteaMirror added the type/proposal label 2025-11-02 10:20:20 -06:00
Author
Owner

@lunny commented on GitHub (Mar 31, 2024):

To implement this, we need to store the LFS object's tree path in database.

@lunny commented on GitHub (Mar 31, 2024): To implement this, we need to store the LFS object's tree path in database.
Author
Owner

@owochle commented on GitHub (Mar 31, 2024):

Well, I don't know how it is implemented in the backend but lfs object are marked as so when viewing them :
image

@owochle commented on GitHub (Mar 31, 2024): Well, I don't know how it is implemented in the backend but lfs object are marked as so when viewing them : ![image](https://github.com/go-gitea/gitea/assets/62758885/f0ec8f5e-c715-4190-9259-b3fc4671c8ee)
Author
Owner

@lunny commented on GitHub (Mar 31, 2024):

For a special object, we can read the pointer. But for a file list(some directories have thousands files), reading the pointer is low performance.

@lunny commented on GitHub (Mar 31, 2024): For a special object, we can read the pointer. But for a file list(some directories have thousands files), reading the pointer is low performance.
Author
Owner

@owochle commented on GitHub (Mar 31, 2024):

Well, if possible it would be nice, but it's not that big of a deal, just handy. You may close the issue if you think it's too complex and/or useless to spend time on.

@owochle commented on GitHub (Mar 31, 2024): Well, if possible it would be nice, but it's not that big of a deal, just handy. You may close the issue if you think it's too complex and/or useless to spend time on.
Author
Owner

@lunny commented on GitHub (Apr 1, 2024):

Well, if possible it would be nice, but it's not that big of a deal, just handy. You may close the issue if you think it's too complex and/or useless to spend time on.

No, I think this is useful. Let's keep it open until someone would like to implement it.

@lunny commented on GitHub (Apr 1, 2024): > Well, if possible it would be nice, but it's not that big of a deal, just handy. You may close the issue if you think it's too complex and/or useless to spend time on. No, I think this is useful. Let's keep it open until someone would like to implement it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12766