mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-03 20:53:59 +01:00
Fix metarecover
This commit is contained in:
parent
dd43e12626
commit
da587e6168
4
tools/metarecover.py
Normal file → Executable file
4
tools/metarecover.py
Normal file → Executable file
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
from git import Repo,Git
|
||||
import io
|
||||
r=Repo(path=".")
|
||||
l=[item for item in r.index.diff(None) if item.a_path.endswith(".dat") and item.change_type=="M"]
|
||||
len(l)
|
||||
l=[item for item in r.index.diff("HEAD") if item.a_path.endswith(".dat") and item.change_type=="M"]
|
||||
for i in l:
|
||||
print(i.a_path)
|
||||
g=Git(Repo.git_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user