libgit2 / libgit2/libgit2sharp
Repository.IsValid uses exception for flow control
未关闭
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
Repository.IsValid uses catching of an Exception to test for validity. This could be considered using exceptions for flow control. It gets annoying for me since I'm checking this often in my application and often the repo isn't there yet so it has a (handled) exception while debugging.
A pull request has been opened to resolve this.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Repository.IsValid 开始,查看 issue 中提到的 pull request,以了解提议的更改。确认实现避免基于异常的有效性检查,并验证 repository 尚不存在时的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- tooling
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100