question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

grr cd when there are multiple repos with the same name

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
simonmarklarcommented, Dec 22, 2020

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 😃

0reactions
awaeschercommented, Dec 22, 2020

Thanks for your quick reply. With this, I’d love to close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Two names for the same github repo
If you rename a repository in github the old name continues to work on the same repository. The old name is like an...
Read more >
Multiple projects/repos in a single CI job
I have a need to use multiple repos in a single CI job. One example is that test data is in its own...
Read more >
Multiple Sources for an Application - Argo CD - Read the Docs
If multiple sources produce the same resource (same group , kind , name , and namespace ), the last source to produce the...
Read more >
Comfyui extensions download. Description. sh ...
All the images in this repo contain metadata which means they can be loaded into ... Contains 2 nodes for ComfyUI that allows...
Read more >
Making Multiple Data Sets
Just going to show how to create lots of data sets that can then be run through new hybrids. We create our own...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found