MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / _load_fuse_commits

Method _load_fuse_commits

gitless/core.py:1018–1024  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1016 shutil.move(path, self._fuse_commits_fp)
1017
1018 def _load_fuse_commits(self):
1019 git_repo = self.gl_repo.git_repo
1020 with io.open(self._fuse_commits_fp, mode='r', encoding=ENCODING) as f:
1021 for ci_id in f:
1022 ci_id = ci_id.strip()
1023 yield git_repo[ci_id]
1024 os.remove(self._fuse_commits_fp)
1025
1026 def fuse(self, src, ip, only=None, exclude=None, op_cb=None):
1027 """Fuse the given commits onto this branch.

Callers 1

fuse_continueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected