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

Function _extract_msg

gitless/cli/commit_dialog.py:84–94  ·  view source on GitHub ↗
(repo)

Source from the content-addressed store, hash-verified

82
83
84def _extract_msg(repo):
85 cf = io.open(_commit_file(repo), mode='r', encoding=ENCODING)
86 sep = pprint.SEP + '\n'
87 msg = ''
88 l = cf.readline()
89 while l != sep and len(l) > 0:
90 msg += l
91 l = cf.readline()
92 # We reached the separator, this marks the end of the commit msg
93
94 return msg
95
96
97def _commit_file(repo):

Callers 1

showFunction · 0.85

Calls 1

_commit_fileFunction · 0.85

Tested by

no test coverage detected