Git LFS UI integration reference
While rendering the source view for LFS is fairly straightforward (see below), there are a number of edge cases with rendering a diff that make that part more tricky. This page contains all of the LFS file file variations and how we handle them in the UI.
Source view
Inline Image | ダウンロード | Object not found |
|
Other Diff view Scenarios
Old file | 新しいファイル | How we display |
Normal binary file | Normal binary file | |
Normal image file | Normal image file | |
None (file first added) | LFS file | |
None (file first added) | LFS web image | |
LFS file | None (file deleted) | |
LFS web image | None (file deleted) | |
LFS file | LFS file | |
LFS web image < 10MB | LFS web image < 10MB | |
LFS web image < 10MB | LFS web image > 10MB | |
LFS web image > 10MB | LFS web image < 10MB | |
Normal web image | LFS web image | |
LFS web image | Normal web image | |
Normal binary file | LFS Binary file |
|
LFS Binary file | Normal binary file |
|
Normal text file | LFS text file | |
LFS text file | Normal text file |
Extreme Edge Cases
Old file | 新しいファイル | What do we do? |
none (new file) | Non-lfs text file that matches spec, | |
Non-lfs text file that matches spec, | Non-lfs text file that matches spec, | |
Non-lfs text file that matches spec, | Non-lfs text file that matches spec, | |
Non-lfs text file that matches spec, | Non-lfs text file that matches spec, |