Skip to content

Commit

Permalink
feat: default log is last 10 entries
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 29, 2022
1 parent 5bcdddc commit 54a82ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 54a82ad

Please sign in to comment.