libgit2 / libgit2/libgit2sharp

There is no way to make Diff Patch contain any binary deltas

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

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

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

説明

Reproduction steps

use Diff.Compare to create a patch that contains BinaryComparisons
save this patch to a file patch.file
call git apply with the created patch.file

Expected behavior

there should be a user settable CompareOption that gives access to the GIT_DIFF_SHOW_BINARY flag in Core.GitDiff.GitDiffOptionFlags so that a patch can be created with binary deltas so that binaries are created/updated in the repo after calling git apply patch.file

Actual behavior

there is no option to set this flag so binaries are not created and or not updated by the patch file

Version of LibGit2Sharp (release number or SHA1)

0.27.0-preview-0175

Operating system(s) tested; .NET runtime tested

windows 10
macOS
ubuntu 20.04

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

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

はじめの一歩

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

調査の方向性

まず Diff.Compare と CompareOption を Core.GitDiff.GitDiffOptionFlags まで追跡し、既存の flags がどのように公開されているかに注目します。BinaryComparisons を使用して patch を作成し、git apply で適用して変更を確認します。patch にバイナリデルタが含まれ、バイナリが作成または更新されれば完了です。

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

評価

技術スタック
csharp, git
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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