From 502bb16cab44aed9e36b6052f725a994b1ffab16 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 6 May 2019 23:19:52 -0400 Subject: Initial commit --- delivery_merge/git.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 delivery_merge/git.py (limited to 'delivery_merge/git.py') 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) -- cgit