refactor(git): minor structural cleanups

This commit is contained in:
2026-04-27 13:10:10 +02:00
parent f55d7ac11d
commit 5966454462
4 changed files with 36 additions and 40 deletions
+2 -3
View File
@@ -78,11 +78,10 @@ function M.git_show_buf(worktree, ref, path, is_index)
vim.bo[buf].buftype = is_index and "acwrite" or "nofile"
vim.bo[buf].bufhidden = "wipe"
vim.bo[buf].swapfile = false
if not is_index then
vim.bo[buf].modifiable = false
end
if is_index then
attach_index_writer(buf, worktree, path)
else
vim.bo[buf].modifiable = false
end
vim.bo[buf].modified = false
return buf