Skip COMMIT_EDITMSG contents when opening the file (#24146)

This commit is contained in:
Kirill Bulatov
2025-02-04 07:23:14 +02:00
committed by GitHub
parent 225f0c4d12
commit ea66a54cf8
9 changed files with 110 additions and 48 deletions
@@ -421,6 +421,7 @@ impl HeadlessProject {
worktree_id,
path: PathBuf::from(message.payload.path).into(),
},
message.payload.skip_file_contents,
cx,
)
});
@@ -487,6 +488,7 @@ impl HeadlessProject {
worktree_id: worktree.read(cx).id(),
path: path.into(),
},
false,
cx,
)
});
@@ -749,6 +751,7 @@ impl HeadlessProject {
worktree_id: worktree.read(cx).id(),
path: Arc::from(relative_path),
},
true,
cx,
)
})