Skip to content

feat: add date range filtering#5

Merged
mloncarevich merged 1 commit into
mainfrom
feat/date-filtering
Feb 17, 2026
Merged

feat: add date range filtering#5
mloncarevich merged 1 commit into
mainfrom
feat/date-filtering

Conversation

@mloncarevich

Copy link
Copy Markdown
Owner

Summary

  • Add --since / -s flag to filter commits after a date
  • Add --until / -u flag to filter commits before a date
  • Recalculates all stats (authors, streaks, activity) for filtered range
  • Includes date filter info in JSON output

Usage

# Stats for 2025 only
gitstats stats --since 2025-01-01 --until 2025-12-31

# Stats from last month
gitstats stats --since 2026-01-01

# Combine with JSON
gitstats stats --since 2025-06-01 --json

Example output

📊 Git Statistics for: .
Filtered: from 2025-01-01 to 2025-12-31

Total commits: 127
...

Made with Cursor

@mloncarevich mloncarevich merged commit fd1a4cb into main Feb 17, 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