feature: allow empty commit (#587)

This commit is contained in:
leo 2024-10-22 10:03:38 +08:00
parent a8a7775b83
commit 1855b43750
No known key found for this signature in database
8 changed files with 147 additions and 20 deletions

View file

@ -0,0 +1,19 @@
namespace SourceGit.ViewModels
{
public class ConfirmCommitWithoutFiles
{
public ConfirmCommitWithoutFiles(WorkingCopy wc, bool autoPush)
{
_wc = wc;
_autoPush = autoPush;
}
public void Continue()
{
_wc.CommitWithoutFiles(_autoPush);
}
private readonly WorkingCopy _wc;
private bool _autoPush;
}
}