Skip to content

feat: add author filtering#6

Merged
mloncarevich merged 1 commit into
mainfrom
feat/author-filter
Feb 25, 2026
Merged

feat: add author filtering#6
mloncarevich merged 1 commit into
mainfrom
feat/author-filter

Conversation

@mloncarevich

Copy link
Copy Markdown
Owner

Summary

  • Add --author / -a flag to filter commits by author name
  • Case-insensitive partial match (e.g., --author "milan" matches "Milan Loncarevic")
  • Can be combined with date filters
  • Refactored filter logic for cleaner code

Usage

# Filter by author
gitstats stats --author "Milan"

# Combine with date range
gitstats stats --author "Milan" --since 2025-01-01

# With JSON output
gitstats stats --author "Milan" --json

Example output

📊 Git Statistics for: .
Filtered: author: Milan

Total commits: 42
Contributors: 1
...

Made with Cursor

@mloncarevich mloncarevich merged commit a28a6c0 into main Feb 25, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant