aboutsummaryrefslogtreecommitdiff
path: root/delivery_merge/git.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-06 23:19:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-06 23:19:52 -0400
commit502bb16cab44aed9e36b6052f725a994b1ffab16 (patch)
tree2ba02459edf27102eb58af3c85ec2c29b41d4224 /delivery_merge/git.py
downloaddelivery_merge-502bb16cab44aed9e36b6052f725a994b1ffab16.tar.gz
Initial commit
Diffstat (limited to 'delivery_merge/git.py')
-rw-r--r--delivery_merge/git.py11
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)