Skip to content

gogit v0.7.0 Release Notes

Release Date: 2026-07-26

Overview

This release adds two new analytics features: AI co-author parsing with model version extraction and commit/LOC aggregation by conventional-commit category. Together these enable consumers to track AI-assisted development metrics and categorize codebase changes by type across repositories.

Highlights

AI co-author parsing

Commit.AICoAuthors() identifies AI coding assistants from Co-authored-by trailers using the default tool registry. AICoAuthorsWithTools allows custom registries. Model versions are extracted from the co-author name (e.g., "Claude Sonnet 4" yields model "Sonnet 4").

for _, ai := range commit.AICoAuthors() {
    fmt.Printf("Tool: %s, Model: %s\n", ai.Tool, ai.Model)
}
  • MatchAITool — match a signature against a tool pattern registry
  • Commit.AICoAuthors — returns all AI co-authors using DefaultAITools
  • Commit.AICoAuthorsWithTools — custom registry variant
  • Commit.IsAIAssisted — returns true if any co-author is a recognized AI tool

Commit/LOC aggregation by category

RepoCommitStats and MultiRepoCommitStats aggregate commit counts and lines of code by conventional-commit type (feat, fix, docs, etc.). Non-conventional commits are grouped under "uncategorized". AI-assisted commit statistics are tracked per tool and model.

stats, err := repo.CollectCommitStats(ctx, gogit.CommitStatsOptions{
    Since: startOfQuarter,
    Until: time.Now(),
})
for cat, s := range stats.ByCategory {
    fmt.Printf("%s: %d commits, +%d/-%d LOC\n", cat, s.Commits, s.Insertions, s.Deletions)
}
  • Repo.CollectCommitStats — single-repo aggregation with date range filtering
  • AggregateCommitStats — parallel multi-repo aggregation
  • CategoryStats, AIStats, ToolStats, ModelStats — structured statistics types
  • MultiRepoCommitStats.CategoryBreakdown — categories sorted by commit count
  • MultiRepoCommitStats.CategoryPercentages — percentage breakdown

Installation

Library:

go get github.com/grokify/gogit@v0.7.0

CLI:

go install github.com/grokify/gogit/cmd/gitscan@v0.7.0

Commits

See CHANGELOG.md for the full categorized list with commit links.