Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346277

Summary: [client][git] Git Status should allow to compare staged file with its counterpart in HEAD
Product: [ECD] Orion Reporter: Tomasz Zarna <tomasz.zarna>
Component: GitAssignee: libing wang <libingw>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: libingw, simon_kaegi, Szymon.Brandys
Version: 0.2   
Target Milestone: 0.3 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tomasz Zarna CLA 2011-05-18 11:11:49 EDT
Currently, when I've staged a file, side-by-side compare shows me diffs between the file in index and working tree. Sometimes it's what I need, but there are cases when I would like to compare the staged file with HEAD i.e. do "git diff --cached".
Comment 1 Tomasz Zarna CLA 2011-10-05 06:29:28 EDT
Libing, I think this one is has been already fixed, hasn't it?
Comment 2 libing wang CLA 2011-10-05 09:40:10 EDT
(In reply to comment #1)
> Libing, I think this one is has been already fixed, hasn't it?

I think so. At the moment the bug was open we did not have a smarter diffURI but now I am just using the diffURI returned on the the file.
Just double checked that for a staged file the URI looks like :
/gitapi/diff/Cached/file/*****

I think this is what you meant but if otherwise please reopen it.
Comment 3 Tomasz Zarna CLA 2011-10-05 10:19:29 EDT
(In reply to comment #2)
> I think this is what you meant but if otherwise please reopen it.

The comparison worked as expected. I've just wondered if it did so by accident or did you actually fixed it. Now I know it's the latter. Thx!