-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Feature request: show image previews for images tracked by lfs #2981
Comments
@technoweenie I got curious about this one and went looking at the Git LFS docs - is there a recommended way to be able to read the contents of an asset using |
The easiest way right now is to invoke the smudge filter manually: $ git show [sha]:[path] | git lfs smudge As a bonus, this will download the file locally to It will work with regular blobs, but LFS will complain about it. # filename arg after 'git lfs smudge' is optional
# it provides a filename hint to lfs warning at the bottom
$ git show master:.gitattributes | git lfs smudge .gitattributes
*.gif filter=lfs diff=lfs merge=lfs -crlf
*.png filter=lfs diff=lfs merge=lfs -crlf
*.jpg filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
Pointer file error: Unable to parse pointer at: ".gitattributes" You can tell it to shut up: $ git show master:.gitattributes | git lfs smudge 2>/dev/null
*.gif filter=lfs diff=lfs merge=lfs -crlf
*.png filter=lfs diff=lfs merge=lfs -crlf
*.jpg filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text |
Hello, I made some changes in code that made possible to show diff between images in fork of the repository using git lfs smudge. |
I suspect this has already been suggested/closed/written down somewhere, but I didn't find anything after a cursory search, so:
Basically, bring the GitHub site and original GitHub Desktop functionality to the cool new GitHub Desktop
Mockup for if you have the image locally:
If the file does not exist locally:
In a diff:
(Not sure about the 4 image diff options when both files aren't present; I just grayed them out but there's probably a better solution)
This would make using GitHub Desktop much more intuitive for artists or anyone dealing with images.
The text was updated successfully, but these errors were encountered: