Skip to content

55 ‐ Extact commits figures

Pierre-Yves Lapersonne edited this page Feb 16, 2026 · 7 revisions

Get commits where GenAI tool is used

Extract commits where Assisted-by field are defined in commit body.

git log --grep='Assisted-by' --pretty=format:'%H %s%n%b'

or also

git log --pretty=format:"%H%n%s%n%b" | grep -A 10 -E 'Assisted-by'

Get commits where issues have been suggested by external people (e.g. feature requests)

Extract commits where Suggested-by field are defined in commit body.

git log --grep='Suggested-by' --pretty=format:'%H %s%n%b'

or also

git log --pretty=format:"%H%n%s%n%b" | grep -A 10 -E 'Suggested-by'

Get commits where issues have been reported by external people (e.g. bugs)

Extract commits where Reported-by field are defined in commit body.

git log --grep='Reported-by' --pretty=format:'%H %s%n%b'

or also

git log --pretty=format:"%H%n%s%n%b" | grep -A 10 -E 'Reported-by'

Count commits by authors

git shortlog -s -n

Count commits by committers

git shortlog -s -n --committer

Clone this wiki locally