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

Aberta
#682 2 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@Alan52254 já está trabalhando nisso.

Desde 13/11/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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.
Linguagem predominante
Rust
Estrelas
236
Forks
153
Merge médio
1d 9h
PRs com merge (30d)
187

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sysprog21/codetrial

Todas as issues de sysprog21/codetrial

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.