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.

List branch and/or path in list of repositories

See original GitHub issue

On my filesystem, I commonly have 2-3 different clones of the repository. For example:

  • /home/user/myrepo-upstream (upstream branch of fork)
  • /home/user/myrepo-master (master branch of fork)
  • /home/user/myrepo-devel (current developments)

I have various reasons for doing so, but the byproduct is that I commonly end up with multiple versions of “myrepo” in GitHub Desktop. The “issue” (more of an irritant) is that the drop down list of “Current Repository” provides no information about which path is being referenced, e.g.:

  • Current Repository
    • GitHub.com
      • myrepo
      • myrepo
      • myrepo

is all that I see in the list. It seems like it would not be particularly difficult to add a “View” option that will insert the folder-name or branch name into the list, e.g.:

  • Current Repository
    • GitHub.com
      • myrepo [myrepo-upstream]
      • myrepo [myrepo-master]
      • myrepo [myrepo-devel]

I haven’t looked through the source code to gauge how difficult this might be to integrate but I suspect this would not be particularly difficult since GitHub Desktop obviously knows the path to the repository and it is just a simple string addition of the base folder name (or an iteration over of the display names checking for equality and then parsing the folder-paths for the shortest unique path)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xakirucommented, Apr 20, 2021

@jrmadsen, does hovering the mouse over each entry not hint the path?

image

Maybe this is a Windows only thing?

Hi, I know this might be old, but is there any plans to make an option to show the repo list with either

  • folder_name
  • repo_name[branch_name]

Or is there a proper way to have this work without having to hover project and wait whenever we wanna switch working to another project ?

0reactions
ryaacommented, Jul 19, 2021

This will be a very helpful feature. Or it would be very helpful if the user can change (rename) the displayed name to whatever he/she wants. This is how it works in Bitbucket Source Tree and I find it very useful…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Finding a branch point with Git? - Stack Overflow
Here's an explanation. The following command gives you the list of all commits in master that occurred after branch_name was created git rev- ......
Read more >
Contribution Guide - Page 2 - Andor's Trail
Edit the code ! In this section, I will not teach you Java, but give you tips that will make your journey in...
Read more >
list-branches — AWS CLI 1.27.37 Command Reference
Gets information about one or more branches in a repository. See also: AWS API Documentation. list-branches is a paginated operation.
Read more >
git-rev-list Documentation - Git
When many contributors are working on the same repository, it is important which merge commits introduced a change into an important branch. The...
Read more >
Branches - GitLab Docs
Repositories with names exactly matching the search terms. Other repositories with names that include search terms, sorted alphabetically. Branch filter search ...
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