MCPcopy Create free account
hub / github.com/ezyang/ghstack / fetch

Method fetch

src/ghstack/submit.py:573–582  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

571 # The main pieces
572
573 def fetch(self) -> None:
574 # TODO: Potentially we could narrow this refspec down to only OUR gh
575 # branches. However, this will interact poorly with cross-author
576 # so it needs to be thought more carefully
577 self.sh.git(
578 "fetch",
579 "--prune",
580 self.remote_name,
581 f"+refs/heads/*:refs/remotes/{self.remote_name}/*",
582 )
583
584 def parse_revs(self) -> List[ghstack.git.CommitHeader]:
585 # There are two distinct usage patterns:

Callers 1

runMethod · 0.95

Calls 1

gitMethod · 0.80

Tested by

no test coverage detected