refactor(git): centralise the git:// scheme behind util.uri / util.parse_uri

This commit is contained in:
2026-04-29 09:56:32 +02:00
parent 590651e9d8
commit 9d938b228b
4 changed files with 25 additions and 10 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ function M.split(opts)
local cur_buf = vim.api.nvim_get_current_buf()
local cur_path = vim.api.nvim_buf_get_name(cur_buf)
local cur_revspec = cur_path:match("^git://(.+)$")
local cur_revspec = util.parse_uri(cur_path)
if cur_revspec then
return uri_split(opts, cur_buf, cur_revspec)
end