gitを使ったソース情報の表示

ファイルの数
find . -type f -not -regex '\./\.git/.*' | wc -l
ソースのライン数総数
find . -type f -not -regex '\./\.git.*' | xargs cat | wc -l
find . -name *.[hcS] -not -regex '\./\.git.*' | xargs cat | wc -l
コミット数
git log --no-merges --pretty=oneline v3.(x-1)..v3.(x) | wc -l
変更数
git diff --shortstat v3.(x-1)..v3.(x)

出処:http://www.h-online.com/open/features/What-s-new-in-Linux-3-8-1804240.html?page=3

コメント

このブログの人気の投稿

日本でコンピュータサイエンスを学ぶ難しさ

How to preview nif file on the ubuntu.