-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes for bugs around --show-email and --since=<date> #32
Conversation
Fix for data loss when users use multiple names (as judged by string comparison) with the same email. Otherwise, the last entry iterated "wins" and all other entries get lost.
Exclude git blame entries that exist outside of the requested range (e.g. with --since=<date>). Otherwise, the user with the nearest commit to the boundary earns the LOC count. Incidentally, this also fixes a crash to stack trace when you request a date-filtered git-fame with --show-email; the auth_stats attributed the boundary lines to a (wrong) author, and that author has no commit messages in the specified range. This can be forced to trigger by requesting a git-fame since the future (e.g. --since=2024) because then one lucky owner gets attributed all of the stat; since all authors have no commits, so there's no emails to perform a lookup against whomever that lucky owner was.
^ travis-ci build/test succeeds. The failure is from the Deploy steps, which I have no control over. |
Hah love this. If you feel the need to refer to an unfunded OS project's sole maintainer in the plural, fine by me :D PRs always even more welcome than sponsorship. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor comment; rest looks good
Codecov Report
@@ Coverage Diff @@
## master #32 +/- ##
==========================================
- Coverage 94.78% 94.29% -0.50%
==========================================
Files 4 4
Lines 326 333 +7
Branches 69 69
==========================================
+ Hits 309 314 +5
- Misses 11 13 +2
Partials 6 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @ccarson-publicsalesforce - just updated to simplify the regex and keep flake8
happy - would be great if you could check if it works for you!
Hello git-fame maintainers,
I have a PR for you that resolves several bugs we ran into while using this tool. Please see the commit messages for descriptions of the changes.
Known bug resolved: #31
New bug resolved: Crash to stack trace when using a selection range (e.g. --since=) and --show-email
New bug resolved: Committers that ever used more than one name (as judged by string comparison) with the same email would only have the stats earned by one of those names, causing data loss.