refactor(git): centralise the git:// scheme behind util.uri / util.parse_uri
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user