mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
feature: supports to view image diff when lfs object points to a image
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -207,7 +207,10 @@ namespace SourceGit.ViewModels
|
||||
}
|
||||
else if (latest.IsLFS)
|
||||
{
|
||||
rs = latest.LFSDiff;
|
||||
if (IMG_EXTS.Contains(Path.GetExtension(_option.Path) ?? ".invalid"))
|
||||
rs = new LFSImageDiff(_repo, latest.LFSDiff);
|
||||
else
|
||||
rs = latest.LFSDiff;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user