chore(git): fix diagnostics
This commit is contained in:
@@ -184,6 +184,7 @@ function M.read_uri(buf)
|
|||||||
vim.bo[buf].swapfile = false
|
vim.bo[buf].swapfile = false
|
||||||
vim.bo[buf].bufhidden = "wipe"
|
vim.bo[buf].bufhidden = "wipe"
|
||||||
|
|
||||||
|
---@type string?
|
||||||
local stdout = pending_content[buf]
|
local stdout = pending_content[buf]
|
||||||
pending_content[buf] = nil
|
pending_content[buf] = nil
|
||||||
if stdout == nil then
|
if stdout == nil then
|
||||||
|
|||||||
+4
-1
@@ -31,7 +31,10 @@ end
|
|||||||
function M.parse_revspec(revspec)
|
function M.parse_revspec(revspec)
|
||||||
local stage, path = revspec:match("^:([0123]):(.+)$")
|
local stage, path = revspec:match("^:([0123]):(.+)$")
|
||||||
if stage then
|
if stage then
|
||||||
return { stage = tonumber(stage), path = path }
|
return {
|
||||||
|
stage = tonumber(stage) --[[@as (0|1|2|3)?]],
|
||||||
|
path = path,
|
||||||
|
}
|
||||||
end
|
end
|
||||||
path = revspec:match("^:([^:]+)$")
|
path = revspec:match("^:([^:]+)$")
|
||||||
if path then
|
if path then
|
||||||
|
|||||||
Reference in New Issue
Block a user