20 lines
767 B
Python
20 lines
767 B
Python
import os, subprocess, json, csv
|
|
HERE = "/root/troupe-standup/wizard-work/ledger/2026-10-31-wizardwork-census"
|
|
REPO = "/root/troupe-standup"
|
|
SCOPE = "wizard-work/"
|
|
tree = subprocess.check_output(["git","ls-tree","-r","-l","HEAD"], cwd=REPO, text=True)
|
|
real = set()
|
|
csv_paths = set()
|
|
with open(os.path.join(HERE,"2026-10-31-wizardwork-census.csv"), encoding="utf-8") as fh:
|
|
rows = list(csv.reader(fh))
|
|
for r in rows[1:]:
|
|
csv_paths.add(r[0])
|
|
for line in tree.strip().splitlines():
|
|
p = line.split()
|
|
_m, o, _o, s, path = p
|
|
if o=="blob" and path.startswith(SCOPE):
|
|
real.add(path[len(SCOPE):])
|
|
print("real", len(real), "csv", len(csv_paths))
|
|
print("only-in-csv", sorted(csv_paths - real)[:5])
|
|
print("only-in-real", sorted(real - csv_paths)[:5])
|