Moved remaining git operations in metadata_review_lib.py to git_ops.py and refactored accoringly
This commit is contained in:
@ -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)
|
Reference in New Issue
Block a user