refactor(git): move the zero-sha check into core/util
This commit is contained in:
@@ -26,6 +26,12 @@ function M.is_uri(name)
|
||||
return name:match("^%a+://") ~= nil
|
||||
end
|
||||
|
||||
---@param sha string?
|
||||
---@return boolean
|
||||
function M.is_zero_sha(sha)
|
||||
return sha == nil or sha:match("^0+$") ~= nil
|
||||
end
|
||||
|
||||
---@param buf integer
|
||||
---@param name string
|
||||
function M.set_buf_name(buf, name)
|
||||
|
||||
Reference in New Issue
Block a user