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

Aperta
#682 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Alan52254 ci sta già lavorando.

Dal 13/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
Rust
Stelle
236
Fork
153
Merge medio
1g 9h
PR unite (30g)
187

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.