Java code commit impact analysis, is a pure python library that analyzes the impact of two git submissions or code differences between different branches of Java projects on the project and generates tree chart data.
Github: jcci
pip install jcci
Start a new python project, add a new python file, code example:
from jcci import jcci
# Compare different commits on the same branch
jcci.analyze('[email protected]','master','commit_id1','commit_id2', 'username1')
# Compare different branches
jcci.analyze_branches('[email protected]','branch_1','branch_2', 'username1')
At the same time, the project will be cloned in the directory and then analyzed to generate a file with the suffix format commit_id1...commit_id2.cci, which contains the tree diagram data generated by the analysis results, download jcci-result.html , upload analyze result file end with .cci, then can be displayed through the view.