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

Customization option of url needed. #181

Open
yunsangr opened this issue May 14, 2021 · 0 comments
Open

Customization option of url needed. #181

yunsangr opened this issue May 14, 2021 · 0 comments

Comments

@yunsangr
Copy link

Customization option of url needed since the keyword "tree" is added to the url by default it does not work with some repo websites, which is yona in my case.

This is the output when i type git open -p

➜  git open -p           
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName

but to work in yona, the url has to be the following below.
http://yona.linewalks.com/myName/myRepoName/code/myBranchName

So, just adding the customization to the url, it might work with other platforms too.
I suggest the following options as examples.

➜  git open --default_url      
http://yona.linewalks.com/myName/myRepoName ( 0 )
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName ( x )
-> git  open --remove_keyword=tree
http://yona.linewalks.com/myName/myRepoName/myBranchName ( O )
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName ( x )
-> git  open --replace_keyword=tree --replace_with=code   
http://yona.linewalks.com/myName/myRepoName/code/myBranchName ( O )
http://yona.linewalks.com/myName/myRepoName/tree/myBranchName ( x )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant