diff options
Diffstat (limited to 'delivery_merge/git.py')
-rw-r--r-- | delivery_merge/git.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/delivery_merge/git.py b/delivery_merge/git.py new file mode 100644 index 0000000..9e8aa6a --- /dev/null +++ b/delivery_merge/git.py @@ -0,0 +1,11 @@ +from subprocess import run + +def git(*args): + command = ['git'] + tmp = [] + for arg in args: + tmp += arg.split() + + command += tmp + print(f'Running: {" ".join(command)}') + return run(command, capture_output=True) |