fix: checktime when git checkout (#2176)
This commit is contained in:
@@ -592,6 +592,7 @@ actions.git_checkout = function(prompt_bufnr)
|
||||
msg = string.format("Checked out: %s", selection.value),
|
||||
level = "INFO",
|
||||
})
|
||||
vim.cmd "checktime"
|
||||
else
|
||||
utils.notify("actions.git_checkout", {
|
||||
msg = string.format(
|
||||
@@ -781,6 +782,7 @@ actions.git_checkout_current_buffer = function(prompt_bufnr)
|
||||
end
|
||||
actions.close(prompt_bufnr)
|
||||
utils.get_os_command_output({ "git", "checkout", selection.value, "--", selection.file }, cwd)
|
||||
vim.cmd "checktime"
|
||||
end
|
||||
|
||||
--- Stage/unstage selected file
|
||||
|
||||
Reference in New Issue
Block a user