╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ progress.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
99 } else { 100 try xit.net_server_pkt.sendSideband(self.writer, 2, text); 101 try self.writer.flush(); 102 } 103 } 104 }; 105 106 // whether the client the work is reporting to has hung up. only a sideband 107 // reporter probes, so any other context never cancels. 108 pub fn cancelled(comptime repo_opts: rp.RepoOpts(.xit), progress_ctx_maybe: ?repo_opts.ProgressCtx) bool { 109 if (repo_opts.ProgressCtx != *Sideband) return false; 110 const progress_ctx = progress_ctx_maybe orelse return false; 111 return progress_ctx.gone; 112 } 113