Mailmap with empty email address is not parsed
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 1.7k
- 派生
- 408
- 平均合并
- 2 天 57 分钟
- 30 天内合并 PR
- 7
描述
Environment:
- Debian sid
- Python 3.11.6
- libgit2-1.7.1+ds-2
- pygit2 1.13.3-1+b1
Test case:
from pygit2 import Mailmap
Mailmap.from_buffer("RealName <real.address@domain.com> oldname <>")
Result:
ValueError: invalid argument: 'replace_email && *replace_email'
Expected result:
This syntax is accepted by Git (mapped names are shown in git log). Empty emails should be allowed.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Mailmap.from_buffer 入口点开始,使用空的替换电子邮件重现所提供的映射。跟踪空地址的解析和验证过程;当示例在没有 ValueError 的情况下被接受,且生成的映射与 Git 的行为一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100