libgit2 / libgit2/libgit2sharp
A better SubmoduleStatus?
未关闭
还没有人认领这个 Issue。
Stabilization
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
As discussed in https://github.com/libgit2/libgit2sharp/issues/1103#issuecomment-113903882
Maybe should we
- Move
Submodule.RetrieveStatus()intoSubmoduleCollection.RetrieveSubmoduleStatus() - Turn
SubmoduleStatusinto a concrete type, which would exposeIsUnmodifiedandIsWorkingDirectoryDirtyshortcut properties along with another one which would maybe expose the flags? This may leave us some room for future improvement (conflicts, ...)
Quote from @dahlbyk
"Now that you mention it, I agree that the SubmoduleStatus API has some room for improvement (SRP violation, communicating both superproject and submodule status)."
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 1103 中链接的讨论开始,并检查现有的 Submodule.RetrieveStatus()、SubmoduleCollection 和 SubmoduleStatus API。该 issue 未指定文件或测试。完成这项工作需要达成一致的 API 重设计,涵盖状态归属、快捷属性以及未来的状态标志。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, git
- 领域
- backend-api-design
- Issue 类型
- 重构
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100