Skip to content

Commit

Permalink
fix: add cli binding for show
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Jul 15, 2024
1 parent e9c4187 commit d9f997d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/gitsigns/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,10 @@ M.show = function(revision, callback)
diffthis.show(bufnr, revision, callback)
end

C.show = function(args, _)
M.show(args[1])
end

CP.show = complete_heads

--- @param buf_or_filename string|integer
Expand Down
1 change: 1 addition & 0 deletions lua/gitsigns/async.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ function M.create(argc_or_func, func)

return function(...)
local callback = argc and select(argc + 1, ...) or nil
assert(not callback or type(callback) == 'function')
return run(func, callback, unpack({ ... }, 1, argc))
end
end
Expand Down

0 comments on commit d9f997d

Please sign in to comment.