Skip to content

Resolve author and committer names through .mailmap - #162

Merged
lusingander merged 2 commits into
lusingander:masterfrom
ChrisJr404:mailmap
Aug 19, 2026
Merged

Resolve author and committer names through .mailmap#162
lusingander merged 2 commits into
lusingander:masterfrom
ChrisJr404:mailmap

Conversation

@ChrisJr404

Copy link
Copy Markdown
Contributor

Closes #102.

serie builds its git log format string with the lowercase identity placeholders (%an, %ae, ...), so it always shows the raw name and email recorded in each commit. This switches to the uppercase variants (%aN, %aE, %cN, %cE) when a new core.option.mailmap option is enabled, which makes git resolve identities through the repository's .mailmap file, the same way git log and git shortlog do. Repositories without a .mailmap are unaffected, since the two placeholder forms produce identical output there.

I defaulted the option to true so it works out of the box like git's own tooling, but it's a plain boolean, so anyone who prefers the raw values can set mailmap = false. Happy to make it opt-in instead if you would rather keep the current default.

Added integration tests for the enabled, disabled, and no-.mailmap cases, and documented the option in the config reference and JSON schema.

@lusingander lusingander left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for working on this! Could you please make the following changes?

  • Please add a new [core.git] section and move mailmap option under it.
  • I’d like the default value to be false.
    • Enabling it by default would probably be fine and unlikely to cause problems, but for now I’d prefer to preserve the existing behavior.

@ChrisJr404

Copy link
Copy Markdown
Contributor Author

Moved mailmap under a new [core.git] section and defaulted it to false to keep the existing behavior, as you suggested. Thanks!

@lusingander
lusingander merged commit 6d5f71b into lusingander:master Aug 19, 2026
8 checks passed
@lusingander

Copy link
Copy Markdown
Owner

Thank you!

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Aug 21, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [lusingander/serie](https://github.com/lusingander/serie) | patch | `v0.8.1` → `v0.8.2` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>lusingander/serie (lusingander/serie)</summary>

### [`v0.8.2`](https://github.com/lusingander/serie/releases/tag/v0.8.2)

[Compare Source](lusingander/serie@v0.8.1...v0.8.2)

#### What's Changed

- Resolve author and committer names through .mailmap by [@&#8203;ChrisJr404](https://github.com/ChrisJr404) in [#&#8203;162](lusingander/serie#162)
- Accept lowercase enum values in config by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;163](lusingander/serie#163)

#### New Contributors

- [@&#8203;ChrisJr404](https://github.com/ChrisJr404) made their first contribution in [#&#8203;162](lusingander/serie#162)

**Full Changelog**: <lusingander/serie@v0.8.1...v0.8.2>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODguMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6cGF0Y2giXX0=-->
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.

Use .mailmap to pick author name

2 participants