mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-23 08:42:15 +02:00
Add 'quiet' option to gitea_api.Git.switch()
This commit is contained in:
@@ -178,8 +178,10 @@ class Git:
|
||||
cmd += ["--hard"]
|
||||
self._run_git(cmd)
|
||||
|
||||
def switch(self, branch: str, orphan: bool = False):
|
||||
def switch(self, branch: str, *, orphan: bool = False, quiet: bool = False):
|
||||
cmd = ["switch"]
|
||||
if quiet:
|
||||
cmd += ["--quiet"]
|
||||
if orphan:
|
||||
cmd += ["--orphan"]
|
||||
cmd += [branch]
|
||||
|
Reference in New Issue
Block a user