Giter Site home page Giter Site logo

Comments (5)

thomasf avatar thomasf commented on July 20, 2024

I also use a LOT of different repository hosts so I would prefer that it was possible to disable ghq get some/thing to go directly to github, I would like to get an error instead and always be forced to qualify github.com : ghq get github.com/some/thing.

from ghq.

thomasf avatar thomasf commented on July 20, 2024

This would probably make more sense btw, if there is a replace the first string
will be considered a regexp match/capture instead of a plain URL.

[ghq "my-repo-server.example.com/(?P<rest>.*)/+"]
  vcs = git
  replace = [email protected]:20022/${rest}.git

But I'm getting ahead of myself with solutions, I would like to know what other people might need from something like this first.

from ghq.

thomasf avatar thomasf commented on July 20, 2024

This issue is related to #21 because this feature would probly benifit alot from a less constrained config format

from ghq.

thomasf avatar thomasf commented on July 20, 2024

Ok so [ghq "my-repo-server.example.com/(?P<rest>.*)/+"] is not an url and thus unsupported by git config..

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.

from ghq.

Songmu avatar Songmu commented on July 20, 2024

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.

from ghq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.