mirror of https://github.com/folke/lazy.nvim.git
feat: default log is last 10 entries
This commit is contained in:
parent
5bcdddc0ec
commit
54a82ad695
|
@ -30,8 +30,10 @@ M.log = {
|
||||||
local info = assert(Git.info(self.plugin.dir))
|
local info = assert(Git.info(self.plugin.dir))
|
||||||
local target = assert(Git.get_target(self.plugin))
|
local target = assert(Git.get_target(self.plugin))
|
||||||
table.insert(args, info.commit .. ".." .. target.commit)
|
table.insert(args, info.commit .. ".." .. target.commit)
|
||||||
else
|
elseif opts.since then
|
||||||
table.insert(args, "--since=" .. (opts.since or "3 days ago"))
|
table.insert(args, "--since=" .. (opts.since or "3 days ago"))
|
||||||
|
else
|
||||||
|
table.insert(args, "-10")
|
||||||
end
|
end
|
||||||
|
|
||||||
self:spawn("git", {
|
self:spawn("git", {
|
||||||
|
|
Loading…
Reference in New Issue