Index in a Bare repository

オープン
#1,491 コメント 11 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, git
領域
backend

調査の方向性

Repository.cs の284行目付近から始め、ObjectDatabase と Refs がどのようにバックエンドを公開しているかを比較します。libgit2 の get_index_new のドキュメントを読み、メモリ内の Index が bare リポジトリと外部から読み込まれたデータをサポートできるか確認します。完了時には、Index バックエンドの明確な設計および実装方針が示され、bare リポジトリのケースをカバーするテストが含まれている必要があります。

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

説明

So currently Index only exists when its not a bare repository. (https://github.com/libgit2/libgit2sharp/blob/master/LibGit2Sharp/Repository.cs#L284)

I'm wondering if its possible to have a Index backend. Just like how ObjectDatabase and Refs can have a backend. It looks like libgit2 supports an in memory Index get_index_new so I'm thinking it could work.

My thought is that I could load my Index data from somewhere else and put it into the in memory index? Does this sound crazy?

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

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

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

はじめの一歩

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

libgit2/libgit2sharp のほかの issue

libgit2/libgit2sharp の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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