MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / _get_commits

Method _get_commits

commitizen/commands/check.py:130–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 )
129
130 def _get_commits(self) -> list[git.GitCommit]:
131 if (msg := self._get_commit_message()) is not None:
132 return [git.GitCommit(rev="", title="", body=self._filter_comments(msg))]
133
134 # Get commit messages from git log (--rev-range)
135 return git.get_commits(
136 git.get_default_branch() if self.use_default_range else None,
137 self.rev_range,
138 )
139
140 @staticmethod
141 def _filter_comments(msg: str) -> str:

Callers 1

__call__Method · 0.95

Calls 2

_get_commit_messageMethod · 0.95
_filter_commentsMethod · 0.95

Tested by

no test coverage detected