"""Get the original 71028dad content of the tier3_ section to compare.""" import subprocess out = subprocess.run(["git", "show", "71028dad:src/gui_2.py"], cwd=".", capture_output=True, errors="ignore", text=True, encoding="utf-8") text = out.stdout # Find tier3_ idx = text.find("tier3_") print(text[idx:idx+2000])