Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Take only the first line of MERGE_MSG (#25263)
Cole Miller3116850688db
diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rsindex c99bcd43562..402567cf8c6 100644--- a/crates/worktree/src/worktree.rs+++ b/crates/worktree/src/worktree.rs@@ -5491,7 +5491,8 @@ impl BackgroundScanner {entry.merge_message = std::fs::read_to_string(local_repository.dot_git_dir_abs_path.join("MERGE_MSG"),)- .ok();+ .ok()+ .and_then(|merge_msg| Some(merge_msg.lines().next()?.to_owned()));entry.status_scan_id += 1;},);