fix: checktime when git checkout (#2176)

This commit is contained in:
Jieru Mei
2022-09-27 12:11:56 -07:00
committed by GitHub
parent 30e2dc5232
commit a7ede53f06

View File

@@ -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