From 6d925345a5875bf33fd58b8c9dd693d86f792562 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Sun, 5 Oct 2025 17:13:43 +0200 Subject: [PATCH] More experiments with futures --- crates/git/src/repository.rs | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index f347cd6fe56eed54ce1875c357aef498670a044c..28f3a7f9ae6966ec0f7c1c992e1807f94ebd2a97 100644 --- a/crates/git/src/repository.rs +++ b/crates/git/src/repository.rs @@ -706,21 +706,7 @@ impl GitRepository for RealGitRepository { tracy_client::Client::running() .expect("tracy client not running") .with_fiber("load_commit", async move { - // let name = std::ffi::CString::new("fiber_load_bytes").unwrap(); - // let loc = ___tracy_source_location_data { - // name: name.as_ptr(), - // function: name.as_ptr(), - // file: name.as_ptr(), - // line: 0, - // color: 0, - // }; - // let zone = unsafe { - // // tracy_client_sys::___tracy_fiber_enter(name.as_ptr()); - // tracy_client_sys::___tracy_emit_zone_begin( - // std::mem::transmute(&loc as *const _), - // 1, - // ) - // }; + println!("Starting..."); let show_output = util::command::new_smol_command(&git_binary_path) .current_dir(&working_directory) @@ -834,10 +820,7 @@ impl GitRepository for RealGitRepository { }) } - // unsafe { - // tracy_client_sys::___tracy_emit_zone_end(zone); - // // tracy_client_sys::___tracy_fiber_leave(); - // } + println!("Stopping..."); Ok(CommitDiff { files }) }),