Enable customizing the host folder name#425
Enable customizing the host folder name#425tejassharma96 wants to merge 3 commits intox-motemen:masterfrom
Conversation
|
Thank you for your pull request. Since ghq is a tool designed to enforce directory names according to specific conventions, I do not intend to introduce flexible configurations for that purpose. If your requirement is to separate clone locations for each organization, you can use the |
I tried this with: Then ran it with The result was that it cloned the repo to Is that correct from you point of view? |
|
This behavior is by design. While the directory structure created by ghq can indeed become deep and long, which might feel cumbersome, I believe it is convenient for managing many cloned repositories and has the benefit of being opinionated. Furthermore, navigating between directories is not an issue when combined with filtering tools, so I don't believe there is a need for the flexibility to make this configurable. |
|
hmmm, ok. I disagree that allowing customization of the folder path from I'll keep the PR open in case you change your mind, I'd really love to see this merged but if you're absolutely set on not allowing this customization you can go ahead and close it. |
Allows for customization using
.gitconfigof the folder underrootthat is used to checkout repositories (instead of the git remote hostname).So eg if I had
when I run
ghq get https://github.com/x-motemen/ghq.git, it would be cloned to~/repos/gh/x-motemen/ghq