10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix metarecover

This commit is contained in:
Mickaël Véril 2021-03-27 15:51:20 +01:00 committed by Anthony Scemama
parent dd43e12626
commit da587e6168

4
tools/metarecover.py Normal file → Executable file
View 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)