Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add repo to cgit URL #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/gitlinker/hosts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ function M.get_cgit_type_url(url_data)
if url_data.port then
url = url .. ":" .. url_data.port
end
url = url .. "/tree/" .. url_data.file .. "?id=" .. url_data.rev
url = url .. "/" .. url_data.repo
url = url .. "tree/" .. url_data.file .. "?id=" .. url_data.rev
if url_data.lstart then
url = url .. "#n" .. url_data.lstart
end
Expand Down