mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-11 15:04:02 +09:00
1 parent
8c647bf0f6
commit
af92473920
2 files changed
+4
-4
No files matched your search
@@ -87,8 +87,8 @@ func AddChanges(repoPath string, all bool, files ...string) error {
|
||||
}
|
||||
|
||||
// AddChangesWithArgs marks local changes to be ready for commit.
|
||||
func AddChangesWithArgs(repoPath string, gloablArgs []string, all bool, files ...string) error {
|
||||
cmd := NewCommandNoGlobals(append(gloablArgs, "add")...)
|
||||
func AddChangesWithArgs(repoPath string, globalArgs []string, all bool, files ...string) error {
|
||||
cmd := NewCommandNoGlobals(append(globalArgs, "add")...)
|
||||
if all {
|
||||
cmd.AddArguments("--all")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user