File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,21 @@ M.reported = {}
13
13
14
14
function M .start ()
15
15
M .fast_check ()
16
- M .schedule ()
16
+ if M .schedule () > 0 then
17
+ Manage .log ({
18
+ show = false ,
19
+ check = true ,
20
+ concurrency = Config .options .checker .concurrency ,
21
+ })
22
+ end
17
23
end
18
24
19
25
function M .schedule ()
20
26
State .read () -- update state
21
27
local next_check = State .checker .last_check + Config .options .checker .frequency - os.time ()
22
28
next_check = math.max (next_check , 0 )
23
29
vim .defer_fn (M .check , next_check * 1000 )
30
+ return next_check
24
31
end
25
32
26
33
--- @param opts ? { report : boolean } report defaults to true
Original file line number Diff line number Diff line change @@ -136,13 +136,13 @@ function M.check(opts)
136
136
}, opts )
137
137
end
138
138
139
- --- @param opts ? ManagerOpts
139
+ --- @param opts ? ManagerOpts | { check ?: boolean }
140
140
function M .log (opts )
141
141
opts = M .opts (opts , { mode = " log" })
142
142
return M .run ({
143
143
pipeline = {
144
144
{ " git.origin" , check = true },
145
- " git.log" ,
145
+ { " git.log" , check = opts . check } ,
146
146
},
147
147
plugins = function (plugin )
148
148
return plugin .url and plugin ._ .installed
You can’t perform that action at this time.
0 commit comments