8000 add `--show=name,email` by jaraco · Pull Request #108 · casperdcl/git-fame · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add --show=name,email #108

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

Merged
merged 3 commits into from
May 26, 2025
Merged

Conversation

jaraco
Copy link
Contributor
@jaraco jaraco commented Apr 13, 2025

Closes #96

Summary

Instead of gathering just the names during the main loop, the routine now gathers both the names and emails, and then depending on which flags were elected, perhaps only the names or only the emails will be rendered. Perhaps this behavior could be made the default, but for backward compatibility, it's an opt-in behavior for now.

@jaraco
Copy link
Contributor Author
jaraco commented Apr 13, 2025

In this PR, I took the approach of being minimally invasive and simply extending the patterns of the existing behavior.

I'd much prefer to do a refactor of the logic to extract functions and classes to model the approach instead of using logic branches (if/else blocks) and flags, but I wouldn't want to invest that time unless I had some maintenance stake in the project.

@casperdcl
Copy link
Owner

Thanks! Please ping me again here if I don't review in the next few days...

@casperdcl casperdcl self-requested a review April 13, 2025 22:17
@jaraco
Copy link
Contributor Author
jaraco commented Apr 27, 2025

@casperdcl Thanks for the offer of review. Let me know if you have any questions.

@jaraco
Copy link
Contributor Author
jaraco commented May 10, 2025

@casperdcl Friendly bump. Let me know if this is something that's potentially to be accepted. Thanks!

@casperdcl casperdcl force-pushed the feature/show-name-and-email branch from 415e26c to 954e642 Compare May 26, 2025 13:47
@casperdcl casperdcl changed the title Add --show-name-and-email parameter. add --show=name,email May 26, 2025
@coveralls
Copy link

Coverage Status

coverage: 87.94% (+0.3%) from 87.597%
when pulling 954e642 on jaraco:feature/show-name-and-email
into 866ef22 on casperdcl:main.

Copy link
Owner
@casperdcl casperdcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jaraco!

I made a few changes:

  • rebased
  • changed --show-name-and-email -> --show=name,email
  • caught a bug where emails ignored .mailmap, causing KeyError in auth2name
  • updated docs a little

@casperdcl casperdcl merged commit 6c3311c into casperdcl:main May 26, 2025
12 checks passed
@casperdcl
Copy link
Owner

/tag v2.2.0 6c3311c

@jaraco
Copy link
Contributor Author
jaraco commented May 26, 2025

Excellent! Love the improvements. Thanks for reviewing, merging, and releasing!

@jaraco jaraco deleted the feature/show-name-and-email branch May 26, 2025 15:15
casperdcl added a commit that referenced this pull request May 27, 2025
- fixes bug from #108
@casperdcl casperdcl mentioned this pull request May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: emit both email and name
3 participants
0