refactor(git): minor structural cleanups
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user