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

Abierto
#682 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Alan52254 ya está trabajando en esto.

Desde el 13/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
236
Forks
153
Merge medio
1 d 9 h
PR fusionados (30 d)
187

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sysprog21/codetrial

Todos los issues de sysprog21/codetrial

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.