mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
enhance: show friendly name instead of --theirs
or --mine
while resolving conflicts
This commit is contained in:
parent
c8cdda3477
commit
feb7e96b2c
5 changed files with 45 additions and 0 deletions
|
@ -81,6 +81,12 @@ namespace SourceGit.ViewModels
|
|||
|
||||
public class RebaseInProgress : InProgressContext
|
||||
{
|
||||
public string HeadName
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public Models.Commit StoppedAt
|
||||
{
|
||||
get;
|
||||
|
@ -93,6 +99,10 @@ namespace SourceGit.ViewModels
|
|||
|
||||
var stoppedSHA = File.ReadAllText(Path.Combine(repo.GitDir, "rebase-merge", "stopped-sha")).Trim();
|
||||
StoppedAt = new Commands.QuerySingleCommit(repo.FullPath, stoppedSHA).Result();
|
||||
|
||||
HeadName = File.ReadAllText(Path.Combine(repo.GitDir, "rebase-merge", "head-name")).Trim();
|
||||
if (HeadName.StartsWith("refs/heads/"))
|
||||
HeadName = HeadName.Substring(11);
|
||||
}
|
||||
|
||||
public override bool Continue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue