git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Count the line of codes

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 6, 2009, 14:08 UTC
Message-ID
<m3zlgzvesp.fsf@localhost.localdomain>
In-Reply-To
<vpqy6wjg24s.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 12 quoted lines
> 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
Previous: Matthieu Moy
Message 4 of 4 in “Count the line of codes”
  1. zykFeb 6, 2009
  2. Johannes GilgerFeb 6, 2009
  3. Matthieu MoyFeb 6, 2009
  4. Jakub NarebskiFeb 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.