MCPcopy
hub / github.com/ChinaGodMan/UserScripts / list_userjs

Function list_userjs

utils/update_version.py:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def list_userjs():
37 result = subprocess.run(["git", "status", "--porcelain"], capture_output=True, text=True, check=True)
38 modified_files = []
39 for line in result.stdout.splitlines():
40 status = line[:2].strip()
41 file_path = line[3:].strip()
42 if status in {"M", "A", "R", "D"}:
43 if ".user.js" in file_path:
44 modified_files.append(file_path)
45 return modified_files
46
47
48def update_log(md_path, lines_to_add):

Callers 1

update_version.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected