chore(git): fix diagnostics

This commit is contained in:
2026-04-29 10:11:23 +02:00
parent 7bf15a246a
commit ff5ac1e74e
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -31,7 +31,10 @@ end
function M.parse_revspec(revspec)
local stage, path = revspec:match("^:([0123]):(.+)$")
if stage then
return { stage = tonumber(stage), path = path }
return {
stage = tonumber(stage) --[[@as (0|1|2|3)?]],
path = path,
}
end
path = revspec:match("^:([^:]+)$")
if path then