()
| 34 | |
| 35 | |
| 36 | def 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 | |
| 48 | def update_log(md_path, lines_to_add): |