* Count the line of codes
@ 2009-02-06 7:55 zyk
2009-02-06 8:23 ` Johannes Gilger
0 siblings, 1 reply; 4+ messages in thread
From: zyk @ 2009-02-06 7:55 UTC (permalink / raw)
To: git
Does anyone know if there is any tools available for counting the line of
codes in the project using GIT?
How to count the code changes on the specific branch?
How to count the delta lines between one tag and its successive tag?
--
View this message in context: http://www.nabble.com/Count-the-line-of-codes-tp21868069p21868069.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Count the line of codes
2009-02-06 7:55 Count the line of codes zyk
@ 2009-02-06 8:23 ` Johannes Gilger
2009-02-06 12:50 ` Matthieu Moy
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Gilger @ 2009-02-06 8:23 UTC (permalink / raw)
To: git
On 2009-02-06, zyk <zhengyuk@hotmail.com> wrote:
>
> Does anyone know if there is any tools available for counting the line of
> codes in the project using GIT?
wc -l *.c *.h for example would count the lines of all c-files and
their headers.
> How to count the code changes on the specific branch?
> How to count the delta lines between one tag and its successive tag?
git diff tag~..tag --stat
Greetings,
Jojo
--
Johannes Gilger <heipei@hackvalue.de>
http://hackvalue.de/heipei/
GPG-Key: 0x42F6DE81
GPG-Fingerprint: BB49 F967 775E BB52 3A81 882C 58EE B178 42F6 DE81
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Count the line of codes
2009-02-06 8:23 ` Johannes Gilger
@ 2009-02-06 12:50 ` Matthieu Moy
2009-02-06 14:08 ` Jakub Narebski
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Moy @ 2009-02-06 12:50 UTC (permalink / raw)
To: Johannes Gilger; +Cc: git
Johannes Gilger <heipei@hackvalue.de> writes:
> On 2009-02-06, zyk <zhengyuk@hotmail.com> wrote:
>>
>> Does anyone know if there is any tools available for counting the line of
>> codes in the project using GIT?
>
> wc -l *.c *.h for example would count the lines of all c-files and
> their headers.
wc for the total number of lines in files, or
http://www.dwheeler.com/sloccount/ to get the number of lines of code
(excluding blank lines and such).
--
Matthieu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Count the line of codes
2009-02-06 12:50 ` Matthieu Moy
@ 2009-02-06 14:08 ` Jakub Narebski
0 siblings, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2009-02-06 14:08 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Johannes Gilger, git
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> Johannes Gilger <heipei@hackvalue.de> writes:
>> On 2009-02-06, zyk <zhengyuk@hotmail.com> wrote:
>>>
>>> Does anyone know if there is any tools available for counting the line of
>>> codes in the project using GIT?
>>
>> wc -l *.c *.h for example would count the lines of all c-files and
>> their headers.
>
> wc for the total number of lines in files, or
> http://www.dwheeler.com/sloccount/ to get the number of lines of code
> (excluding blank lines and such).
Or Ohcount (OSS part of Ohloh) from http://labs.ohloh.net/ohcount
Or GitStat (but that is web-based) which you can see at work at
http://mirror.celinuxforum.org/gitstat/
Or git-statistic GSoC 2008 project http://repo.or.cz/w/git-stats.git
HTH
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-06 14:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 7:55 Count the line of codes zyk
2009-02-06 8:23 ` Johannes Gilger
2009-02-06 12:50 ` Matthieu Moy
2009-02-06 14:08 ` Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox