mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08: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;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue