Compare a merged base and a failed compare call in the review bundle

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

メンテナーはふだん 1 日以内に返信

@Alan52254 がすでに取り組んでいます。

2026年11月13日 から。

評価

この issue はまだ評価されていません。

説明

The rewrite comparison that #605 adds to review-bundle.sh reads a rebase or an amend through a tree diff and a range-diff. Three cases came up in review and were left out of that change on purpose, so it stays at what #587 asked for.

  1. A head whose compare status is merged (Update branch, or a hand merge of the base) still gets the whole diff. Accepting it needs a check that the merge brought in only the base, so a merge of some other branch is not reported as rewritten.
  2. When the compare call fails but the clone already holds the old head as an ancestor with no merge commits, git diff old head gives the ahead answer locally instead of falling back to the whole diff.
  3. A status of unknown over a merged history should give the same answer as merged, and the order in which compare_why picks its reason for it should be fixed in one place.

Acceptance:

  • one test per cell of the status matrix (ahead, behind, diverged, merged, unknown) crossed with --since-base given or not, and with the fetch, the merge-base or the range-diff step failing;
  • each fallback names its reason in the manifest since.why and in SKILL.md;
  • the helper that gives up on a comparison is the single place that sets the reason.
主要言語
Rust
スター
236
フォーク
153
平均マージ
1日 9時間
マージ済み PR(30日)
187

環境構築

はじめの一歩

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

sysprog21/codetrial のほかの issue

sysprog21/codetrial の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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