Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-04

Repository commit statistics. :-)

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I've been playing with new Git commands again and found this cool little one. It outputs the number of commits done by all users in the Lazarus repository. I guess it's kinda pointless since the numbers do not fully reflect all contributors. Patches submitted to Mantis is applied by other users that have read/write access to the repository. So only those read/write users are shown. But what the hell, it shows who are the busy guys either way. I also timed the command for interest sake. ;-)

=======================
$ time git shortlog -s -n
  7567  mattias
  2704  lazarus
  2515  paul
  2232  vincents
   766  marc
   732  micha
   492  jesus
   377  zeljko
   319  sekelsenmat
   292  tombo
   269  martin
   268  kirkpatc
   124  andrew
   101  laurent
    95  darius
    70  ajgenius
    55  mazen
    46  ask
    34  michael
    14  marco
    14  peter
    12  dmitry
     5  florian
     4  mbukovjan
     1  unknown

real 0m0.726s
user 0m0.688s
sys 0m0.024s
=======================

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Alexander Klenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Patches submitted to Mantis is applied by other users that have read/write access to the repository. So only those read/write users are shown.

Yes, properly preserving author info in commits is another thing Git gets right, and Subversion does not.

?2704 ?lazarus

Hm, I wonder who he is ;-)

Alexander S. Klenin

Reply by email

Graeme Geldenhuys
to Alexander Klenin: On Wed, Apr 15, 2009 at 22:37, Graeme Geldenhuys Yes, properly preserving author info in…
Alexander Klenin wrote
Yes, properly preserving author info in commits is another thing Git gets right, and Subversion does not.

Correct. Git can distinguish between the Author and Committer or a patch.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Florian Klaempfl
to Alexander Klenin: On Wed, Apr 15, 2009 at 22:37, Graeme Geldenhuys Yes, properly preserving author info in…
Show quoted text 8 lines
On Wed, Apr 15, 2009 at 22:37, Graeme Geldenhuys wrote: > Patches submitted to Mantis is > applied by other users that have read/write access to the repository. > So only those read/write users are shown. Yes, properly preserving author info in commits is another thing Git gets right, and Subversion does not.

Who needs it? My sat nav can also plan routes for trucks but it is not the reason why I use it. The real name of a submitter goes into the log, the person responsible for the commit is known by subversion.

Reply by email

Graeme Geldenhuys
to Florian Klaempfl
Florian Klaempfl wrote
The real name of a submitter goes into the log, the person responsible for the commit is known by subversion.

So you do the same thing but manually - that git does automatically for you (and makes it an official feature). Who knows what statistics developers want in the future? :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Henry Vermaak
to Graeme Geldenhuys

2009/4/16 Graeme Geldenhuys :

Show quoted text 9 lines
On Thu, Apr 16, 2009 at 9:21 AM, Florian Klaempfl wrote: > > ?The real name of a submitter goes into the log, > the person responsible for the commit is known by subversion. So you do the same thing but manually - that git does automatically for you (and makes it an official feature). ?Who knows what statistics developers want in the future? ?:-)

i think what he means is that you can find out which developer has made which change (svn blame). that's useful. i'm sure git can do the same. i can't see the point of shortlog -n, except something you would present at a management meeting to prove that you're the busiest developer.

henry

Reply by email

Florian Klaempfl
to Graeme Geldenhuys: On Thu, Apr 16, 2009 at 9:21 AM, Florian Klaempfl So you do the same thing but manually -…
Show quoted text 7 lines
On Thu, Apr 16, 2009 at 9:21 AM, Florian Klaempfl wrote: > The real name of a submitter goes into the log, > the person responsible for the commit is known by subversion. So you do the same thing but manually - that git does automatically for you (and makes it an official feature).

The bad thing is: if the original patch was made by some who setup git wrongly (which is rather likely for someone using git seldomly, e.g. I enter always a random name and email address when setting up an account on a machine), you don't have a real name of the submitter. Further, I don't add the email address of the submitter to the log on purpose to make life for spammers harder.

Reply by email