mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
enhance: forbid to reword or squash when there're local changes
This commit is contained in:
parent
3b7545e4fb
commit
2d4f8709ca
3 changed files with 43 additions and 33 deletions
|
@ -27,7 +27,7 @@ namespace SourceGit.ViewModels
|
|||
public Squash(Repository repo, Models.Commit head, Models.Commit parent)
|
||||
{
|
||||
_repo = repo;
|
||||
_message = new Commands.QueryCommitFullMessage(_repo.FullPath, parent.SHA).Result();
|
||||
_message = new Commands.QueryCommitFullMessage(_repo.FullPath, head.SHA).Result();
|
||||
|
||||
Head = head;
|
||||
Parent = parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue