Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346277 - [client][git] Git Status should allow to compare staged file with its counterpart in HEAD
Summary: [client][git] Git Status should allow to compare staged file with its counter...
Status: VERIFIED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.3 RC1   Edit
Assignee: libing wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 11:11 EDT by Tomasz Zarna CLA
Modified: 2011-10-11 15:40 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!