[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: 'git log --shortstat' hangs
From: |
James Lowe |
Subject: |
RE: 'git log --shortstat' hangs |
Date: |
Tue, 5 Jul 2011 21:19:52 +0000 |
Francisco,
________________________________________
From: address@hidden address@hidden on behalf of Francisco Vila address@hidden
Sent: 05 July 2011 20:32
To: LilyPond-Devel list
Subject: 'git log --shortstat' hangs
I am sorry if this is too offtopic. When I do
git log --shortstat | wc -l
git does not complete the process and refuses to give control back to
the user. Tested with git 1.7.0.4 and 1.7.4.1, on two different
(large) git repositories. The same happens if you type
git log --shortstat
and hit the 'end' key in the less pager. I have dumped the output to
a file and it just freezes and stops dumping.
Without the --shortstat option it takes a fraction of a second even on
large git histories. Could anyone test it?
---------------
tested it on my LilyPond Git.
Indeed git log | wc -l takes a few seconds but git log --shortstat | wc -l does
complete but takes more time. However I am using 6 CPUs on this server and I
noticed that one CPU was constantly at 100% all the others hovered about 4%
while I did this.
I expect on lesser machines it will also complete.
Here is my output with date
address@hidden:~/lilypond-git$ date ; git log --shortstat | wc -l ; date
Tue Jul 5 22:18:17 BST 2011
222369
Tue Jul 5 22:18:53 BST 2011
address@hidden:~/lilypond-git$
address@hidden:~/lilypond-git$ date ; git log | wc -l ; dateTue Jul 5 22:19:03
BST 2011
182473
Tue Jul 5 22:19:04 BST 2011
address@hidden:~/lilypond-git$
HTH
James