feat: git log

This commit is contained in:
Folke Lemaitre 2022-11-22 21:12:50 +01:00
parent 54d5ff18f5
commit 3218c2d9ec
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
7 changed files with 83 additions and 6 deletions

View file

@ -53,6 +53,9 @@ function M.run(operation, opts, filter)
runner:add(Task.new(plugin, "run"))
end
plugin.dirty = false
if operation == "update" then
runner:add(Task.new(plugin, "log"))
end
end
-- wait for post-install to finish
runner:wait(on_done)
@ -85,6 +88,14 @@ function M.update(opts)
end)
end
---@param opts? ManagerOpts
function M.log(opts)
---@param plugin LazyPlugin
M.run("log", opts, function(plugin)
return plugin.uri and plugin.installed
end)
end
---@param opts? ManagerOpts
function M.clean(opts)
opts = opts or {}