fix: checktime when git checkout (#2176)

(cherry picked from commit a7ede53f06)
This commit is contained in:
Jieru Mei
2022-09-27 12:11:56 -07:00
committed by Simon Hauser
parent 006b458a45
commit 8931c15a60
+2
View File
@@ -560,6 +560,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(
@@ -749,6 +750,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