MCPcopy Create free account
hub / github.com/BillHuang2001/evogit / list_remote_notes_namespaces

Function list_remote_notes_namespaces

python-impl/evogit/utils/git.py:835–846  ·  view source on GitHub ↗

List all the remote notes namespaces.

(config: EvoGitConfig)

Source from the content-addressed store, hash-verified

833
834
835def 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
849def merge_notes(config: EvoGitConfig) -> None:

Callers 2

delete_remote_notesFunction · 0.85
merge_notesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected