refactor: since there is a hotkey to stage and commit, remove the unsafe auto-stage configure

This commit is contained in:
leo 2024-10-22 09:29:49 +08:00
parent 31e7bef01d
commit 6dac26d525
No known key found for this signature in database
10 changed files with 7 additions and 33 deletions

View file

@ -79,12 +79,6 @@ namespace SourceGit.ViewModels
private set => SetProperty(ref _isCommitting, value);
}
public bool AutoStageBeforeCommit
{
get => _repo.Settings.AutoStageBeforeCommit;
set => _repo.Settings.AutoStageBeforeCommit = value;
}
public bool UseAmend
{
get => _useAmend;
@ -416,7 +410,7 @@ namespace SourceGit.ViewModels
public void Commit()
{
DoCommit(AutoStageBeforeCommit, false);
DoCommit(false, false);
}
public void CommitWithAutoStage()
@ -426,7 +420,7 @@ namespace SourceGit.ViewModels
public void CommitWithPush()
{
DoCommit(AutoStageBeforeCommit, true);
DoCommit(false, true);
}
public ContextMenu CreateContextMenuForUnstagedChanges()