add per-commit publishing from sync status
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run
Rust / build (macos-latest, stable) (pull_request) Waiting to run
Rust / build (ubuntu-latest, stable) (pull_request) Waiting to run
Rust / build (windows-latest, stable) (pull_request) Waiting to run

This commit is contained in:
2026-11-19 05:14:52 +07:00
parent 41f34d0192
commit c7c1d0c741
13 changed files with 518 additions and 244 deletions
+4 -4
View File
@@ -1190,9 +1190,10 @@ impl RepoStore {
self.run_push(push, None, cx)
}
pub fn push_checkout(
pub fn push_checkout_commit(
&mut self,
path: PathBuf,
commit: String,
cx: &mut Context<Self>,
) -> Task<Result<(), Error>> {
if self.pushing {
@@ -1210,12 +1211,11 @@ impl RepoStore {
};
// The state event's `HEAD` stays the announced default branch.
// The checkout may be on a side branch.
let head = self.head.clone();
let backend = Backend::global(cx);
let push = backend.update(cx, |backend, cx| {
backend.push_checkout(announcement, path.clone(), head, cx)
backend.push_checkout_commit(announcement, path.clone(), head, commit, cx)
});
self.run_push(push, Some((addr, path)), cx)