1
0
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:
2025-10-08 10:00:24 +02:00
parent 10f5e7309e
commit ce99ac5e83
3 changed files with 6 additions and 5 deletions

View File

@@ -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]