Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Checkpoint on another branch: should `merge` and `git push` follow it, and commits left on the instance branch

Aperta
#285 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, rust

Direzione di ricerca

Read issue #284 and trace how checkpoint, newgit merge, and git push interact when the workspace is on a branch other than the instance branch. The issue does not name files or tests, so first locate the checkpoint and merge/push code and their existing tests. Decide the expected behavior for each open case, add coverage for merge and push from another branch, and verify how commits left on the instance branch are handled.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

#284 (for #259) makes a checkpoint save the workspace's checked-out branch as it stands, record which branch it was, and move the instance's branch only when the workspace is on it. Left open:

  • newgit merge from another branch. Merge goes through the same checkpoint, so with the workspace on try-x it merges try-x (with a warning). Merging an experiment into main is hard to take back. Should merge refuse instead, unlike checkpoint?
  • git push to a newgit remote from another branch. The checkpoint's sync is what gets pushed, so git push origin base while on try-x publishes try-x's state as the instance's work, with a warning. That's surprising for an explicit push origin base.
  • Commits on the instance branch made before switching away. If an agent commits on base and then switches to try-x before checkpointing, the store's base doesn't get those commits until the workspace is back on base and checkpoints again. Should checkpoint fetch the workspace's base too when it's on another branch?
  • Not covered by tests: merge and push while on another branch.
Lingua principale
Rust
Stelle
0
Fork
0
Merge medio
7h 15m
PR unite (30g)
87

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Spheroman/newgit

Tutte le issue di Spheroman/newgit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.