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

Đang mở
#487 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Rust
Star
2.1k
Fork
110
Merge trung bình
23 giờ 52 phút
Pull request đã merge (30 ngày)
138

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Ephemeral-AI-Lab/layerfs

Tất cả issue của Ephemeral-AI-Lab/layerfs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.