Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359277 - git pages should have link to relevant resources in navigator.
Summary: git pages should have link to relevant resources in navigator.
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.4 RC1   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 369555
Blocks: 369163
  Show dependency tree
 
Reported: 2011-09-28 12:59 EDT by Susan McCourt CLA
Modified: 2012-02-08 14:52 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2011-09-28 12:59:27 EDT
Much of the time, I am on a git page doing something (fetch/merge, checking status, etc.) and then I want to go do work on one of the files involved.

Right now, I have to go to navigator and find the file, or go to a favorite.

The breadcrumb links in the git pages all link to git URL's, on the assumption that I want to traverse my repo using those links.

But more often than not, what I really want to do is just go to the navigator at a certain path.  

I'm not sure that the breadcrumb link should change, but somewhere we need a link that lets me go to that place in the nav.

Similarly, from git status I should be able to go to a referenced file for editing...today I have to go to the navigator, find the file, and edit it, or open resource.
Comment 1 Susan McCourt CLA 2011-09-28 13:15:07 EDT
(In reply to comment #0)
> Similarly, from git status I should be able to go to a referenced file for
> editing...today I have to go to the navigator, find the file, and edit it, or
> open resource.

This is already covered in bug 347068.

So this bug is really about how we can go to the corresponding part of the navigator from a git breadcrumb location.  And whether the breadcrumb for git log and git status should work as it does today or whether it should link to the navigator instead.
Comment 2 Susan McCourt CLA 2011-09-29 11:50:42 EDT
jjb had the opposite wish:

>I wish the navigator and edit pages showed me the branch name.
>I wish the branch name linked to the git status page.

Seems like we have the general issue of pages that are viewing a resource and you want a quick link to go to another task view of that same resource.

I'm changing this from a git issue to a general client issue.

Perhaps some of this work could be in conjunction with bug 349531, so I'm assigning to me for now.

Note that "showing the branch name" goes beyond links to other tasks, it's more like a "context" in which I'm viewing some resources, or information telling me where it came from.  This may require a more specific solution.
Comment 3 Malgorzata Janczarska CLA 2011-11-04 11:30:30 EDT
So far we used breadcrumbs to display hierarchical resources. It contains a path to the resource and it allows to move up in the hierarchy. This is implemented in navigator and works fine. It is followed in git logs that contain a path to the resource in the breadcrumb and a name of the branch in the title. This could (and I think should) be also adopted to git status.

But I see that in git we have more layers of the hierarchy, we would like to have links between:
* git log local branch
* git log remote branch
* navigator
* git status

For some of those it is covered by commands in the toolbar. For this one situation we can add a link to navigator in the toolbar for log log and git status. But also we need a link from git log to git status. Probably when Bug 359621 is fixed we would like to link logs and status with the corresponding repository.

>I wish the navigator and edit pages showed me the branch name.
>I wish the branch name linked to the git status page.

This is something different I think. Old eclipse decorates resources with various team elements: repository, branch, dirty flag etc. Adding some of those would require adding new extension points. We have extension points for custom commands, this is not very different.
Comment 4 Susan McCourt CLA 2012-02-08 14:52:17 EST
fixed the original issue.
You can now use 
Related pages->Navigate
to get from any git page to the same spot in the navigator.

The git status->editor issue is covered in bug 369163

The "showing branch in other pages" issue is covered in bug 370893

marking fixed.