0
0
mirror of https://github.com/thegeeklab/wp-git-action.git synced 2024-06-02 18:29:41 +02:00
This commit is contained in:
Robert Kaussow 2024-05-06 10:59:18 +02:00
parent fe43c710d3
commit 7e5786cde6
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -5,21 +5,6 @@ import (
"golang.org/x/sys/execabs"
)
// ForceAdd forces the addition of all dirty files.
func (r *Repository) ForceAdd() *types.Cmd {
cmd := execabs.Command(
gitBin,
"add",
"--all",
"--force",
)
cmd.Dir = r.WorkDir
return &types.Cmd{
Cmd: cmd,
}
}
// Add updates the index to match the working tree.
func (r *Repository) Add() *types.Cmd {
cmd := execabs.Command(
@ -51,8 +36,6 @@ func (r *Repository) IsCleanTree() *types.Cmd {
}
// Commit creates a new commit with the specified commit message.
// If EmptyCommit is true, it will allow an empty commit.
// If NoVerify is true, it will skip the pre-commit and commit-msg hooks.
func (r *Repository) Commit() *types.Cmd {
args := []string{
"commit",