Fix some bugs on previous commit

This commit is contained in:
Masahiro Kasashima 2023-06-17 21:02:43 +09:00
parent 5e742c3d7f
commit 68a3ed8af4
2 changed files with 2 additions and 3 deletions

View file

@ -23,9 +23,9 @@ function M.setup()
end
local get_current_branch_or_commit_with_priority = function(priority)
if (not priority) or (priority and priority == 'branch') then
if priority == 'branch-priority' then
return utils.get_current_branch_or_commit()
elseif (priority and priority == 'branch') then
elseif priority == 'commit-priority' then
return utils.get_current_commit_or_branch()
else
return utils.get_current_branch_or_commit()