__init__.py
python
sha256:660fcac1df3ab28f61862e961890bd2ca8b754fa0242079d93ca1e25037ec8a6
chore(tests): add docstring to tests/__init__.py so rc14 tr…
Human
32 days ago
| 1 | """Code domain plugin — semantic version control for source code. |
| 2 | |
| 3 | Treats code as a structured, semantic system rather than text files. |
| 4 | The unit of change is a *symbol* (function, class, method, variable) — |
| 5 | not a line. Two commits that reformat a file without changing semantics |
| 6 | produce identical symbol content IDs and therefore no delta. |
| 7 | |
| 8 | Language support |
| 9 | ---------------- |
| 10 | - Python (*.py, *.pyi): Full AST-based symbol extraction via stdlib ``ast``. |
| 11 | - All other files: file-level tracking with raw-bytes identity. |
| 12 | |
| 13 | Extending the language support |
| 14 | ------------------------------- |
| 15 | Implement :class:`~muse.plugins.code.ast_parser.LanguageAdapter` and |
| 16 | register the instance in :data:`~muse.plugins.code.ast_parser.ADAPTERS`. |
| 17 | """ |
File History
2 commits
sha256:660fcac1df3ab28f61862e961890bd2ca8b754fa0242079d93ca1e25037ec8a6
chore(tests): add docstring to tests/__init__.py so rc14 tr…
Human
32 days ago
sha256:d8316ffae901be06347e16ab55be11868eb519dd16ade3e8aa16a99e662f7e62
baseline: rc14 re-baseline after rc3 store corruption recovery
Human
patch
32 days ago