Moved remaining git operations in metadata_review_lib.py to git_ops.py and refactored accoringly

This commit is contained in:
2024-07-05 15:46:20 +02:00
parent 77386432f8
commit 92eca4d79e
2 changed files with 19 additions and 19 deletions

View File

@ -33,4 +33,11 @@ def add_files_to_git(files_to_add_list):
def commit_changes(message):
commit_command = ['git', 'commit', '-m', message]
commit_output = subprocess.run(commit_command, capture_output=True, check=True)
print(commit_output.stdout)
print(commit_output.stdout)
def get_status():
return subprocess.run(['git','status'],capture_output=True,text=True,check=True)
def show_current_branch():
current_branch_command = ['git','branch','--show-current']
subprocess.run(current_branch_command,capture_output=True,text=True,check=True)