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 some kind of transforms for "ghq.<url>." #86
Comments
I also use a LOT of different repository hosts so I would prefer that it was possible to disable |
This would probably make more sense btw, if there is a replace the first string
But I'm getting ahead of myself with solutions, I would like to know what other people might need from something like this first. |
This issue is related to #21 because this feature would probly benifit alot from a less constrained config format |
Ok so Looking at remote_repository code it seems like it shouldnt be very complicated to fit almost everything it does for every back end into some configuration file language. |
As a ghq feature, the correspondence between queries and directories is very clear. However, if such complicated rules are applied, it will be difficult to understand, and overkill. So I close it once. |
Instead of doing this:
I want to do this:
I'ts similar to what GIT's
url.<base>.pushInsteadOf
does but more powerfuland specifically for GHQ.
quickly thrown together configuration example
The URL in
[ghq "my-repo-server.example.com/"]
becomes a simple prefix stringmatcher which then looks at match/replace to construct the final URLs.
Conceptually it could work something like this but there are probably more use
cases to think about.
Forcefully overriding https with .git:
And configure sub paths of hosts to be translated where the longest match wins(?):
The text was updated successfully, but these errors were encountered: