mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
ux: show conflict sources when it comes from a stash or patch (#1067)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
bfc3f37e47
commit
855466686d
2 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,11 @@
|
||||||
Theirs = merge.Source;
|
Theirs = merge.Source;
|
||||||
Mine = repo.CurrentBranch;
|
Mine = repo.CurrentBranch;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Theirs = "Stash or Patch";
|
||||||
|
Mine = repo.CurrentBranch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UseTheirs()
|
public void UseTheirs()
|
||||||
|
|
|
@ -239,6 +239,13 @@
|
||||||
<TextBlock Margin="4,0,0,0" Text="{Binding Subject}"/>
|
<TextBlock Margin="4,0,0,0" Text="{Binding Subject}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
|
<DataTemplate DataType="x:String">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Path Width="12" Height="12" Data="{StaticResource Icons.Changes}"/>
|
||||||
|
<TextBlock Margin="4,0,0,0" Text="{Binding}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</DataTemplate>
|
||||||
</StackPanel.DataTemplates>
|
</StackPanel.DataTemplates>
|
||||||
|
|
||||||
<Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/>
|
<Path Width="64" Height="64" Data="{StaticResource Icons.Conflict}" Fill="{DynamicResource Brush.FG2}" HorizontalAlignment="Center"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue