gitweb icon indicating copy to clipboard operation
gitweb copied to clipboard

Customize the repo URL

Open dycw opened this issue 4 years ago • 2 comments
trafficstars

Is your feature request related to a problem? Please describe. At work, our repos/branches are hosted at bitbucket.COMPANY.com/projects/ORGANIZATION/repos/REPONAME/browse?at=refs%2Fheads%2FBRANCHNAME. As it stands gitweb is opening bitbucket.COMPANY.com/ORGANIZATION/REPONAME/tree/BRANCHNAME.

Describe the solution you'd like A template to customize the path. Otherwise, perhaps this might be the --remote arg which I've not been able to get working, so an example on that would be helpful.

Describe alternatives you've considered None.

Additional context None.

dycw avatar Mar 03 '21 02:03 dycw

Hi 😊

Thanks for opening this feature request. gitweb does not support this kind of URL at the moment, but probably will in the future. The --remote flag is here to tell which git remote to open (use git remote to list your repository remotes (it is often origin by convention and upstream when working a fork).

💡 Idea for anybody who wants to solve this request In the future, we can probably have a flag --format to customize the URL with the different parts and probably a config file to match a given domain name as a repository URL is based on the domain.

yoannfleurydev avatar Mar 03 '21 09:03 yoannfleurydev

Thanks for stopping by! I'll be most pleased if this could be implemented.

dycw avatar Mar 04 '21 08:03 dycw