Git
stats for the masses pt. II: gitstats
To appraise the tenth anniversary of Git, I want to introduce another tool for measuring the performance for whole repositories: gitstats.
I ran it over quite huge repos and small ones, precompiled for Linux and self-built for OSX and its capabilities and output are really nice. You can even truncate certain timeframes from the visualised data, etc. Output is HTML.
For a small example I ran it over one upcoming project – since I am the lone contributor, some graphs are really lonely.
External link <- can be down.
stats for the masses: gitinspector
I am always quite fond of statistics.
Sometimes there is a feeling that the pace of the project is slowing down, but in fact bigger changes take more time and therefore ‘look’ sluggish. But with some real analysis tool you can verify or invalidate this. Never underestimate the truth rock-hard data provides.
The downside is: is someone tweaks his output, because he is aware of the measurement, the stats can be distorted.
tl;dr
gitinspector is a Python-script which creates some output about the authors, their activity, .. as command-line-message or even HTML.
Easy to use (download, extract, run) and versatile.
I can’t provide any useful example-output, because for most of my repositories I am the sole author.
git commit –amend (or: work-around the issue with changing merge-commit-message a posteriori with SmartGit)
SmartGit does not allow to modify auto-generated messages of merge-commits. If you follow a certain policy, then the auto-format does not fit to your style. So it has to be changed:
1 2 3 4 5 6 7 8 9 10 |
* go to your current repository * grab first the last message System:project marcelpetrick$ git shortlog -1 Marcel Petrick (1): Merge remote-tracking branch 'origin/master' into Ticket1234 * fix it, by prepending a certain prefix System:project marcelpetrick$ git commit --amend -m "Ticket1234: update to the current HEAD@master.\nMerge remote-tracking branch 'origin/master' into Ticket1234" [Ticket1234 4223666] Ticket1234: update to the current HEAD@master.\nMerge remote-tracking branch 'origin/master' into Ticket1234 Date: Sun Jan 18 14:26:37 2015 +0100 System:project marcelpetrick$ Merge remote-tracking branch 'origin/master' into Ticket1234 |