Skip to content

Commit 8554666

Browse files
committed
ux: show conflict sources when it comes from a stash or patch (#1067)
Signed-off-by: leo <[email protected]>
1 parent bfc3f37 commit 8554666

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/ViewModels/Conflict.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public Conflict(Repository repo, WorkingCopy wc, Models.Change change)
4949
Theirs = merge.Source;
5050
Mine = repo.CurrentBranch;
5151
}
52+
else
53+
{
54+
Theirs = "Stash or Patch";
55+
Mine = repo.CurrentBranch;
56+
}
5257
}
5358

5459
public void UseTheirs()

src/Views/WorkingCopy.axaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@
239239
<TextBlock Margin="4,0,0,0" Text="{Binding Subject}"/>
240240
</StackPanel>
241241
</DataTemplate>
242+
243+
<DataTemplate DataType="x:String">
244+
<StackPanel Orientation="Horizontal">
245+
<Path Width="12" Height="12" Data="{StaticResource Icons.Changes}"/>
246+
<TextBlock Margin="4,0,0,0" Text="{Binding}"/>
247+
</StackPanel>
248+
</DataTemplate>
242249
</StackPanel.DataTemplates>
243250

244251
<Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/>

0 commit comments

Comments
 (0)