libgit2 / libgit2/libgit2sharp
Add none-throwing methods to all collections
未关闭
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
It would be nice to have methods analagous to the dictionaries TryGet on all collection types to allow adding, removing and finding for example branches that do not throw exceptions/return null.
I would be happy to add these as eitehr extension methods or methods on the respective collections if they would be wanted.
Sean.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,识别库中的所有集合类型,并检查它们现有的 add、remove 和 lookup 操作。为每个操作定义不抛出异常时的行为,包括失败时返回 null 还是其他结果,并在实现之前确认每个集合都具有一致的 API。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- api
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100