For example consider a git repository having 5 commits with size 1Mb, 2Mb, 2.5Mb, 3Mb and 2Mb at each of the commits. I wish to obtain the difference of each commit size in python. That is 1Mb, 1Mb, 0.5Mb, 0.5Mb, -1Mb.
Is there any way or command in python wherein I could calculate the size of the repository at each commit, and then I could simply subtract each subsequent entry to obtain the difference, or a direct command to do so.
I am using gitpython from a python script to perform git operations.