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

Function fetch_notes_from_remote

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

Fetch the notes from the remote repository.

(
    config: EvoGitConfig, async_fetch: bool = True
)

Source from the content-addressed store, hash-verified

857
858
859def fetch_notes_from_remote(
860 config: EvoGitConfig, async_fetch: bool = True
861) -> subprocess.Popen | None:
862 """Fetch the notes from the remote repository."""
863 cmd = ["git", "fetch", "-q", "origin", "refs/notes/*:refs/notes/*"]
864
865 if async_fetch:
866 return subprocess.Popen(
867 cmd,
868 cwd=config.git_dir,
869 stdout=subprocess.DEVNULL,
870 stderr=subprocess.DEVNULL,
871 )
872 else:
873 subprocess.run(
874 cmd,
875 cwd=config.git_dir,
876 check=True,
877 stdout=subprocess.DEVNULL,
878 stderr=subprocess.DEVNULL,
879 )
880
881
882def diff_view(

Callers 1

delete_remote_notesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected