Skip to content

Commit

Permalink
fix: checktime when git checkout (#2176)
Browse files Browse the repository at this point in the history
(cherry picked from commit a7ede53)
  • Loading branch information
meijieru authored and Conni2461 committed Jan 6, 2023
1 parent 006b458 commit 8931c15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/telescope/actions/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8931c15

Please sign in to comment.