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