Skip to main content

All Questions

Tagged with
2 votes
2 answers
2k views

How to amend the Git commit message through Python?

I have used subprocess.check_output to get the result of Git command but I can't think of a way how to update the commit message that we do with the command git commit -amend ?
1 vote
2 answers
3k views

Diff commit messages of two branches with gitpython

At work, we have a workflow where each branch is "named" by date. During the week, at least once, the latest branch gets pushed to production. What we require now is the summary/commit messages of the ...
0 votes
2 answers
494 views

git commit miss, can't get it

I clone the 'Apache/tomcat' git repo to use some info about commit. However, when i use git.repo('repo local address').iter_commits(), i can't get some commits. Besides, I can't search these in github ...
0 votes
0 answers
114 views

Release hash of a repo does not show in its "git log"

To mine repositories. I'm basically traversing its git commits to extracting info. However, in many repositories, I see that the hash of a release is not present in the git log. For example in ...
0 votes
0 answers
488 views

How can I calculate commit size difference of each commit in python?

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....