mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
feature: use MERGE_MSG as default commit message while merging (#88)
This commit is contained in:
parent
ea1d0bf6a2
commit
86c89e0c33
1 changed files with 8 additions and 0 deletions
|
@ -274,6 +274,14 @@ namespace SourceGit.ViewModels
|
||||||
SelectedStagedTreeNode = null;
|
SelectedStagedTreeNode = null;
|
||||||
SetDetail(null, false);
|
SetDetail(null, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Try to load merge message from MERGE_MSG
|
||||||
|
if (string.IsNullOrEmpty(_commitMessage))
|
||||||
|
{
|
||||||
|
var mergeMsgFile = Path.Combine(_repo.GitDir, "MERGE_MSG");
|
||||||
|
if (File.Exists(mergeMsgFile))
|
||||||
|
CommitMessage = File.ReadAllText(mergeMsgFile);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return hasConflict;
|
return hasConflict;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue