summaryrefslogtreecommitdiff
path: root/lua/telescope/actions/init.lua
diff options
context:
space:
mode:
authorKyoichiro Yamada <me@kyoh86.dev>2021-05-11 19:06:38 +0900
committerGitHub <noreply@github.com>2021-05-11 13:06:38 +0300
commit1fefd0098e92315569b71a99725b63521594991e (patch)
tree5458c9af3bbb5c8c454400f14aa4d1c802662683 /lua/telescope/actions/init.lua
parentd5aa53dcd3fdb7ea4b12f043b787a6419ab8eb84 (diff)
fix: rename `actions.git_switch` to `git_switch_branch` (#835)
Diffstat (limited to 'lua/telescope/actions/init.lua')
-rw-r--r--lua/telescope/actions/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua
index 174f390..f78eb01 100644
--- a/lua/telescope/actions/init.lua
+++ b/lua/telescope/actions/init.lua
@@ -380,7 +380,7 @@ end
-- If the branch already exists in local, switch to that.
-- If the branch is only in remote, create new branch tracking remote and switch to new one.
--@param prompt_bufnr number: The prompt bufnr
-actions.git_switch = function(prompt_bufnr)
+actions.git_switch_branch = function(prompt_bufnr)
local cwd = action_state.get_current_picker(prompt_bufnr).cwd
local selection = action_state.get_selected_entry()
actions.close(prompt_bufnr)