From 37f5472186e2279a95d8421ddc370b59cb321270 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 10 May 2024 16:01:20 +0800 Subject: [PATCH] ux: do not show `/dev/null` in DiffView for new file --- src/ViewModels/DiffContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViewModels/DiffContext.cs b/src/ViewModels/DiffContext.cs index 18c03936..3400b5ea 100644 --- a/src/ViewModels/DiffContext.cs +++ b/src/ViewModels/DiffContext.cs @@ -133,7 +133,7 @@ namespace SourceGit.ViewModels Dispatcher.UIThread.Post(() => { - if (string.IsNullOrEmpty(_option.OrgPath)) + if (string.IsNullOrEmpty(_option.OrgPath) || _option.OrgPath == "/dev/null") Title = _option.Path; else Title = $"{_option.OrgPath} → {_option.Path}";