libgit2 / libgit2/libgit2sharp

Be more git compliant when resolving references

オープン
#498 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Easy fix Up for grabs
主要言語
C#
スター
3.5k
フォーク
925
PR マージ指標
30日以内にマージされた PR はありません

説明

It looks like LibGit2Sharp is not that git.git compliant when it comes to weirdly named references. Let's fix this!

Given a repo with a tag refs/tags/refs/tags/v1.0

  • TagCollection["v1.0"] shouldn't resolve anything
  • TagCollection["refs/tags/v1.0"] should correctly resolve it
  • TagCollection["refs/tags/refs/tags/v1.0"] should correctly resolve it

Given a repo with two tags refs/tags/refs/tags/v1.0 and refs/tags/v1.0

  • TagCollection["v1.0"] should resolve refs/tags/v1.0
  • TagCollection["refs/tags/v1.0"] should resolve refs/tags/v1.0
  • TagCollection["refs/tags/refs/tags/v1.0"] should resolve refs/tags/refs/tags/v1.0

It would make sense to make BranchCollection consistent with this behavior as well.

Given a repo with a tag refs/tags/v1.0 and a branch refs/heads/v1.0

  • TagCollection["v1.0"] should resolve refs/tags/v1.0
  • BranchCollection["v1.0"] should resolve refs/heads/v1.0

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

TagCollection と BranchCollection の検索エントリポイントから開始し、参照名がどのように解決されるかを追跡してください。記載されているリポジトリを再現し、タグとブランチの検索が各ケースで指定された参照を正確に返すことを検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, git
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。