grr cd when there are multiple repos with the same name
See original GitHub issueI have multiple repos all called “api” (a loose company naming policy as we do a bunch of projects for various clients) - so I understand this is probably an outlier and technically I can work around the issue, however grr
should speed up working with git like the hub does and for me its not providing much value in this (rather particular) circumstance
In windows terminal using a powershell prompt using grr cd api
I get the following results:
[1] api master ≡ ⁞2
[2] api ON-6945 ⌂ +10 ~0 -0 | +0 ~8 -4 ⁞1
Found multiple repositories, using api.
You can access the others by index now, like:
grr cd :2
however the first repo location is automatically typed seemingly char by char (and kinda slowly too, takes about 1-2 seconds on some of my repo paths), after which i can then type grr cd :2
(and wait for the typing to finish). Alternatively i can use grr cd api "p <filter>"
to do it in one command, however this also suffers from the slow writing of the cd command to the prompt
The whole process is marginally faster than just typing out the repo name using tab completion, eg cd ~/src/gitlab.com/company-name/project-name/api/
it would be great if
- outputting the command
cd <path-to-repo>
could be sped up somehow grr cd reponame
would only change folders if there is one matching reponame, or- if the syntax could support the position of a matching repo in the initial command, something like
grr cd reponame:2
.
aside from this one use case, it really does grr
help switching between the other repos super fast
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Hi
i’ve been using 5.4 for a while now and its much better with the copy/paste mechanism. I’m happy for this to be closed 😃
Thanks for your quick reply. With this, I’d love to close this.