List all the remote notes namespaces.
(config: EvoGitConfig)
| 833 | |
| 834 | |
| 835 | def list_remote_notes_namespaces(config: EvoGitConfig) -> list[str]: |
| 836 | """List all the remote notes namespaces.""" |
| 837 | refs = subprocess.run( |
| 838 | ["git", "notes", "get-ref"], |
| 839 | check=True, |
| 840 | cwd=config.git_dir, |
| 841 | capture_output=True, |
| 842 | ).stdout.decode("utf-8") |
| 843 | refs = refs.split("\n") |
| 844 | # remove the empty string and the default notes namespace |
| 845 | notes_namespaces = [ref[11:] for ref in refs if ref and ref != "refs/notes/commits"] |
| 846 | return notes_namespaces |
| 847 | |
| 848 | |
| 849 | def merge_notes(config: EvoGitConfig) -> None: |
no outgoing calls
no test coverage detected