mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-06-02 18:29:41 +02:00
cleanup
This commit is contained in:
parent
fe43c710d3
commit
7e5786cde6
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user