Revert "doDeleteCommitAndPush implemented"

This reverts commit e9c29f82f2.
This commit is contained in:
DmitryFrolovTri
2023-05-19 14:37:11 +00:00
parent 51a769720f
commit 2cbdee0104
2 changed files with 7 additions and 45 deletions
-8
View File
@@ -100,14 +100,6 @@ func AddChangesWithArgs(repoPath string, globalArgs TrustedCmdArgs, all bool, fi
return err
}
// DeleteChangesWithArgs marks local changes to be ready for commit.
func DeleteChangesWithArgs(repoPath string, globalArgs TrustedCmdArgs, files ...string) error {
cmd := NewCommandContextNoGlobals(DefaultContext, globalArgs...).AddArguments("rm")
cmd.AddDashesAndList(files...)
_, _, err := cmd.RunStdString(&RunOpts{Dir: repoPath})
return err
}
// CommitChangesOptions the options when a commit created
type CommitChangesOptions struct {
Committer *Signature