Is there a better way to do this?
Also what's the difference between cmputeDiff2.perl and cmputeDiff3.perl?
It also seems like there's no indexes for cmputeDiff3CT.perl or cmputeDiffT.perl?
There are ldiffFrom* scripts (ldiffFromBdiff is probably fastest) but all are very expensive to compute, so I would suggest to drop them unless you are computing a very small number. LOC diff tends to be fairly meaningless anyway, more robust approach just to count files modified
There is no unique way to calculate diff for commits with 2+ parents. Use cmputeDiff3.perl: see algorithm described in the file. C and T stand for whether to use offset map for commits/trees
The github API returns metadata with additions/deletions/total: https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#get-a-commit
Right now using WoC I can run the following to get additions/deletions per commit... Create the bash script
diffstats.sh
:Then with commit
009d7b6da9c4419fe96ffd1fffb2ee61fa61532a
To get
insertions;deletions;total
.Is there a better way to do this? Also what's the difference between
cmputeDiff2.perl
andcmputeDiff3.perl
? It also seems like there's no indexes forcmputeDiff3CT.perl
orcmputeDiffT.perl
?