MCPcopy Create free account
hub / github.com/Persper/code-analytics / diff_with_commit

Function diff_with_commit

persper/analytics/git_tools.py:18–22  ·  view source on GitHub ↗
(current_commit:Commit, base_commit:Union[Commit, str]=None)

Source from the content-addressed store, hash-verified

16 create_patch=True, R=True, indent_heuristic=True)
17
18def diff_with_commit(current_commit:Commit, base_commit:Union[Commit, str]=None):
19 localBaseCommit = base_commit
20 if not localBaseCommit:
21 localBaseCommit = EMPTY_TREE_SHA
22 return current_commit.diff(localBaseCommit, create_patch=True, R=True, indent_heuristic=True)
23
24def initialize_repo(repo_path):
25 try:

Callers 1

_analyzeCommitMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected