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

Function cherry_pick

src/ghstack/test_prelude.py:328–334  ·  view source on GitHub ↗
(commit: Union[GitCommitHash, ghstack.submit.DiffMeta])

Source from the content-addressed store, hash-verified

326
327
328def cherry_pick(commit: Union[GitCommitHash, ghstack.submit.DiffMeta]) -> None:
329 self = CTX
330 if isinstance(commit, ghstack.submit.DiffMeta):
331 h = commit.orig
332 else:
333 h = commit
334 self.sh.git("cherry-pick", h, tick=True)
335
336
337def dump_github() -> str:

Callers

nothing calls this directly

Calls 1

gitMethod · 0.80

Tested by

no test coverage detected