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

Re: Count the line of codes

From
Johannes Gilger <heipei@hackvalue.de>
Date
Feb 6, 2009, 08:23 UTC
Message-ID
<gmgs1u$lsv$1@ger.gmane.org>
In-Reply-To
<21868069.post@talk.nabble.com>
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
Previous: zykNext: Matthieu Moy
Message 2 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.