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

Function commit

src/ghstack/test_prelude.py:294–302  ·  view source on GitHub ↗
(name: str, msg: Optional[str] = None)

Source from the content-addressed store, hash-verified

292
293
294def commit(name: str, msg: Optional[str] = None) -> None:
295 self = CTX
296 write_file_and_add(f"{name}.txt", "A")
297 self.sh.git(
298 "commit",
299 "-m",
300 f"Commit {name}\n\nThis is commit {name}" if msg is None else msg,
301 )
302 self.sh.test_tick()
303
304
305def amend(name: str) -> None:

Callers

nothing calls this directly

Calls 3

write_file_and_addFunction · 0.85
gitMethod · 0.80
test_tickMethod · 0.80

Tested by

no test coverage detected