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

  • Make raw link link to download from LFS
     


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


The "new" link downloads the text metadata file with the binary file name and extension,
i.e. it will appear corrupt

LFS Binary file

Normal binary file


The "old" link downloads the text metadata file with the binary file name and extension,
i.e. it will appear corrupt

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,
but with invalid object
(simulates an LFS object being deleted from the content server)

Non-lfs text file that matches spec,
but with invalid object id
(simulates an LFS object being deleted from the content server)

Non-lfs text file that matches spec,
but with a different invalid object id
(simulates an LFS object being deleted from the content server)

Non-lfs text file that matches spec,
but with invalid object id
(simulates an LFS object being deleted from the content server)

Non-lfs text file that matches spec,
and has a valid object id
 

Non-lfs text file that matches spec,
and has a valid object id

Non-lfs text file that matches spec,
but with invalid object id
(simulates an LFS object being deleted from the content server)

 
  

最終更新日 2016 年 11 月 11 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.