MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / _get_commit_with_message

Function _get_commit_with_message

git_utils.py:348–352  ·  view source on GitHub ↗

Finds commit with given message.

(repo: Repo, message: str)

Source from the content-addressed store, hash-verified

346
347
348def _get_commit_with_message(repo: Repo, message: str) -> str:
349 """Finds commit with given message."""
350 escaped_message = message.replace("[", "\\[").replace("]", "\\]")
351
352 return repo.git.rev_list(repo.active_branch.name, "--grep", escaped_message, "-n", "1")
353
354
355def get_implementation_code_diff(repo_path: Union[str, os.PathLike], frid: str, previous_frid: str) -> dict:

Callers 5

_get_commit_with_fridFunction · 0.85
_get_base_folder_commitFunction · 0.85
_get_initial_commitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected