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
+2 -2
View File
@@ -485,7 +485,7 @@ end
local function head_pane(worktree, path)
return {
buf = object.buf_for(worktree, "HEAD:" .. path),
name = "git://HEAD:" .. path,
name = util.uri("HEAD:" .. path),
}
end
@@ -526,7 +526,7 @@ local function index_pane(s, entry)
end
return {
buf = object.buf_for(s.worktree, ":0:" .. entry.path),
name = "git://:0:" .. entry.path,
name = util.uri(":0:" .. entry.path),
}
end