'save-at:1722225521.8701391'
This commit is contained in:
parent
01d4a935ba
commit
03b8ad6c50
|
@ -1,6 +1,7 @@
|
||||||
import sys, os
|
import sys, os
|
||||||
import subprocess as xsub
|
import subprocess as xsub
|
||||||
import time
|
import time
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
def git_save(target_dir: str):
|
def git_save(target_dir: str):
|
||||||
|
@ -8,9 +9,14 @@ def git_save(target_dir: str):
|
||||||
print(retls.stdout)
|
print(retls.stdout)
|
||||||
outlist = str(retls.stdout).split(r'\n')
|
outlist = str(retls.stdout).split(r'\n')
|
||||||
has_changed:bool = False
|
has_changed:bool = False
|
||||||
|
|
||||||
|
files_path:List[str] = []
|
||||||
for o in outlist:
|
for o in outlist:
|
||||||
if o.startswith(r"\tmodified:"):
|
modified_flag = r"\tmodified:"
|
||||||
|
if o.startswith(modified_flag):
|
||||||
has_changed = True
|
has_changed = True
|
||||||
|
files_path.append(o[len(modified_flag):])
|
||||||
|
|
||||||
elif o.startswith(r"\tnew file:"):
|
elif o.startswith(r"\tnew file:"):
|
||||||
has_changed = True
|
has_changed = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue