feat: default log is last 10 entries

This commit is contained in:
Folke Lemaitre 2022-11-29 10:55:49 +01:00
parent 5bcdddc0ec
commit 54a82ad695
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 1 deletions

View File

@ -30,8 +30,10 @@ M.log = {
local info = assert(Git.info(self.plugin.dir))
local target = assert(Git.get_target(self.plugin))
table.insert(args, info.commit .. ".." .. target.commit)
else
elseif opts.since then
table.insert(args, "--since=" .. (opts.since or "3 days ago"))
else
table.insert(args, "-10")
end
self:spawn("git", {