Merge into an existing Branch, or a guarded head move to a merge result

Aperta
#487 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

The issue names branch.merge, the Branch head, and the mounted Workspace check as the points involved, and it links #411 for the related cleanup work. Before any code, the maintainers need to choose between merging into an existing Branch and a guarded head move, and that decision is not made in the issue. Done means that choice is recorded and the refusal behaviour for a mounted Workspace is specified as a typed error.

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

Descrizione

new feature question

DISCLOSURE: This submission was generated by AI under the approval of the human who owns the github account. If it is unwelcome due to the use of AI or there is any feedback, please comment. Any human comment will receive a human response where applicable. This submission is intended to enhance the project, not frustrate maintainers. Thank you for making your project available open source!

Summary

When work has diverged, branch.merge produces its result on a new Branch. A caller that wants the result on a Branch it already uses has no way to move that Branch's head to the merge result.

Proposal

A merge into an existing Branch, or a guarded head move to a merge result. It would be refused while that Branch has a mounted Workspace, unless the caller explicitly opts in, and the refusal would be typed.

What it enables

  • Long-lived Branch names that keep their identity across merges, as in other version-control systems.
  • No growth in the number of Branches created only to hold merge results, which today also need to be cleaned up (see #411).
  • Workspaces and tools bound to a Branch name keep working after a merge, without being re-pointed to a new Branch.

Notes

Observed on v1.1.0 (ad78914).

Lingua principale
Rust
Stelle
2.1k
Fork
110
Merge medio
23h 52m
PR unite (30g)
138

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: 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 Ephemeral-AI-Lab/layerfs

Tutte le issue di Ephemeral-AI-Lab/layerfs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.