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:
leo
2025-06-04 20:53:42 +08:00
parent 06a77502bc
commit ed496a41fb
6 changed files with 171 additions and 24 deletions

View File

@@ -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
{