2021-08-25 19:48:07 +00:00
|
|
|
import subprocess
|
|
|
|
from typing import Sequence
|
|
|
|
|
2021-08-26 14:46:24 +00:00
|
|
|
def exec(*args: str):
|
|
|
|
return subprocess.check_call(["git", *args])
|
2021-08-25 20:38:26 +00:00
|
|
|
|
2021-08-26 19:04:09 +00:00
|
|
|
def rc(*args: str):
|
|
|
|
return subprocess.call(["git", *args])
|
|
|
|
|
2021-08-26 14:46:24 +00:00
|
|
|
def read(*args: str):
|
|
|
|
return subprocess.check_output(["git", *args], text=True).strip()
|