Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: checktime when git checkout #2176

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: checktime when git checkout
  • Loading branch information
meijieru committed Sep 22, 2022
commit 1e61f18f94cb265e0b79e9973dd5d7c197ed25d7
2 changes: 2 additions & 0 deletions lua/telescope/actions/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down