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

Method for Calculating Statistics of Developer Contribution to a Specified Branch.

From
HZHongyi Zhao <hongyi.zhao@gmail.com>
Date
Oct 16, 2023, 14:10 UTC
Message-ID
<CAGP6POKg4mSFv-Z+dD1aXDFDbxH9Xu1WCdCA5TGfCAM3NUUQLw@mail.gmail.com>
Dear Git Mailing List,

I am a developer currently working on a project and I wanted to establish statistics for each team member's contribution to a specific branch.

Say, for a user "JianboLin", I am currently using the following method:

$ git clone https://github.com/OrderN/CONQUEST-release.git $ cd CONQUEST-release $ git log --author="JianboLin" --stat --summary origin/f-mlff | awk 'NF ==4 && $2 =="|" && $3 ~/[0-9]+/ && $4 ~/[+-]+|[+]+|[-]+/ {s+=$3} END {print s}'

Using the above command, I am able to calculate the number of lines contributed by a specific author on a specific branch, which allows me to quantify the contribution to a branch by each team member.

However, I would like to know if a more efficient or accurate method exists to carry out this task. Are there any other parameters, commands, or aspects I need to consider to get a more comprehensive measure of contribution?

I greatly appreciate your expertise and look forward to your valuable input.
Best Regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
Next: brian m. carlson
Message 1 of 7 in “Method for Calculating Statistics of Developer Contribution to a Specified Branch.”
  1. Hongyi ZhaoOct 16, 2023
  2. brian m. carlsonOct 16, 2023
  3. Hongyi ZhaoOct 17, 2023
  4. Taylor BlauOct 30, 2023
  5. Hongyi ZhaoOct 31, 2023
  6. Junio C HamanoOct 31, 2023
  7. Taylor BlauOct 31, 2023

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.