diff options
| author | Jieru Mei <meijieru@gmail.com> | 2022-09-27 12:11:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-27 21:11:56 +0200 |
| commit | a7ede53f06e657d7f682284730b95c3af6dfc345 (patch) | |
| tree | d876a03b97db06aa39beb4976970a474fda6b913 | |
| parent | 30e2dc5232d0dd63709ef8b44a5d6184005e8602 (diff) | |
fix: checktime when git checkout (#2176)
| -rw-r--r-- | lua/telescope/actions/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 3384b54..3a6ccc7 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -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 |
