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

Customize the repo URL #55

Open
dycw opened this issue Mar 3, 2021 · 2 comments
Open

Customize the repo URL #55

dycw opened this issue Mar 3, 2021 · 2 comments
Labels
enhancement New feature or request
Projects

Comments

@dycw
Copy link

dycw commented Mar 3, 2021

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.

@yoannfleurydev
Copy link
Owner

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 yoannfleurydev added the enhancement New feature or request label Mar 3, 2021
@dycw
Copy link
Author

dycw commented Mar 4, 2021

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

@yoannfleurydev yoannfleurydev added this to ToDo in Tasks Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Tasks
ToDo
Development

No branches or pull requests

2 participants