{"thread":{"id":"17603","subject":"Count the line of codes","startedAt":"2009-02-06T07:55:39Z","lastAt":"2009-02-06T14:08:32Z","messageCount":4,"participants":["zyk","Johannes Gilger","Matthieu Moy","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"103432","messageId":"21868069.post@talk.nabble.com","threadId":"17603","inReplyTo":null,"subject":"Count the line of codes","fromName":"zyk","fromEmail":"zhengyuk@hotmail.com","sentAt":"2009-02-06T07:55:39Z","receivedAt":"2009-02-06T07:55:39Z","isPatch":false,"sender":{"key":"zhengyuk@hotmail.com","avatar":null},"body":"\nDoes anyone know if there is any tools available for counting the line of\ncodes in the project using GIT?\n\nHow to count the code changes on the specific branch?\nHow to count the delta lines between one tag and its successive tag?\n-- \nView this message in context: http://www.nabble.com/Count-the-line-of-codes-tp21868069p21868069.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"103434","messageId":"gmgs1u$lsv$1@ger.gmane.org","threadId":"17603","inReplyTo":"21868069.post@talk.nabble.com","subject":"Re: Count the line of codes","fromName":"Johannes Gilger","fromEmail":"heipei@hackvalue.de","sentAt":"2009-02-06T08:23:26Z","receivedAt":"2009-02-06T08:23:26Z","isPatch":false,"sender":{"key":"heipei@hackvalue.de","avatar":"https://avatars.githubusercontent.com/u/6072?v=4"},"body":"On 2009-02-06, zyk <zhengyuk@hotmail.com> wrote:\n>\n> Does anyone know if there is any tools available for counting the line of\n> codes in the project using GIT?\n\nwc -l *.c *.h for example would count the lines of all c-files and \ntheir headers.\n\n> How to count the code changes on the specific branch?\n> How to count the delta lines between one tag and its successive tag?\n\ngit diff tag~..tag --stat\n\nGreetings,\nJojo\n\n-- \nJohannes Gilger <heipei@hackvalue.de>\nhttp://hackvalue.de/heipei/\nGPG-Key: 0x42F6DE81\nGPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81\n"},{"id":"103466","messageId":"vpqy6wjg24s.fsf@bauges.imag.fr","threadId":"17603","inReplyTo":"gmgs1u$lsv$1@ger.gmane.org","subject":"Re: Count the line of codes","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2009-02-06T12:50:59Z","receivedAt":"2009-02-06T12:50:59Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Johannes Gilger <heipei@hackvalue.de> writes:\n\n> On 2009-02-06, zyk <zhengyuk@hotmail.com> wrote:\n>>\n>> Does anyone know if there is any tools available for counting the line of\n>> codes in the project using GIT?\n>\n> wc -l *.c *.h for example would count the lines of all c-files and \n> their headers.\n\nwc for the total number of lines in files, or\nhttp://www.dwheeler.com/sloccount/ to get the number of lines of code\n(excluding blank lines and such).\n\n-- \nMatthieu\n"},{"id":"103480","messageId":"m3zlgzvesp.fsf@localhost.localdomain","threadId":"17603","inReplyTo":"vpqy6wjg24s.fsf@bauges.imag.fr","subject":"Re: Count the line of codes","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2009-02-06T14:08:32Z","receivedAt":"2009-02-06T14:08:32Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Matthieu Moy <Matthieu.Moy@imag.fr> writes:\n> Johannes Gilger <heipei@hackvalue.de> writes: \n>> On 2009-02-06, zyk <zhengyuk@hotmail.com> wrote:\n>>>\n>>> Does anyone know if there is any tools available for counting the line of\n>>> codes in the project using GIT?\n>>\n>> wc -l *.c *.h for example would count the lines of all c-files and \n>> their headers.\n> \n> wc for the total number of lines in files, or\n> http://www.dwheeler.com/sloccount/ to get the number of lines of code\n> (excluding blank lines and such).\n\nOr Ohcount (OSS part of Ohloh) from http://labs.ohloh.net/ohcount\n\nOr GitStat (but that is web-based) which you can see at work at\nhttp://mirror.celinuxforum.org/gitstat/\n\nOr git-statistic GSoC 2008 project http://repo.or.cz/w/git-stats.git\n\nHTH\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}