开发者

Git Brag: How do I extract git data for my brag sheet?

Say I w开发者_如何学JAVAant to add a blurb to my resume like "Recent coding experience: In the last # months I've written # lines of code including # lines of ruby, # lines of javascript, # lines of css, and # lines of specs." What's a good way to extract such stats from git?

(Since nobody should be impressed by code quantity without evidence of quality, assume such evidence is elsewhere.)

To simplify, forget about merging results from multiple repos. Also, count only lines in HEAD and ignore deleted or overwritten lines.

How do I squeeze these numbers from git?


git log --author foo --*stat

There are a number of stat commands. --stat --numstat --shortstat --dirstat. Some provide the information you want. You can accumulate the stats, figure out the file type by directory or file name, or actual file inspection, and output as necessary.

However, as someone who interviews people, I'm pretty sure I would find that statistic entirely useless and a sign of bad thinking on the applicant's part.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜