Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » quick diff with index as baseline?
quick diff with index as baseline? [message #1005634] Sun, 27 January 2013 16:20 Go to next message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
EGit's integration with quick-diff is very handy and nicely supports using any SHA as the baseline, via history, with HEAD as the default. The one case it does not cover, as far as I know, is using the index as the baseline.

Is there a way to set the index as the baseline? If there isn't, was that just an oversight or is there some difficulty with this case?

If you haven't tried quick-diff in EGit, or you don't know what quick-diff is, have a look:

- Open Preferences -> General -> Editors -> Text Editors -> Quick Diff
- Check "Enable Quick Diff" and "Show Differences in Overview ruler"
- In the pulldown under "Use this reference source"", choose "A Git Revision"

Text files will now have active markups showing which lines have been changed relative to whatever the current baseline is.
Re: quick diff with index as baseline? [message #1005638 is a reply to message #1005634] Sun, 27 January 2013 17:52 Go to previous message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 319
Registered: July 2009
Senior Member
R Shapiro skrev 2013-01-27 22.20:
> EGit's integration with quick-diff is very handy and nicely supports using any SHA as the baseline, via history, with HEAD as the default. The one case it does not cover,
> as far as I know, is using the index as the baseline.
>
> Is there a way to set the index as the baseline? If there isn't, was that just an oversight or is there some difficulty with this case?

There isn't a way. Implementing it would not be very hard for the one who wants to do it. The mechanism we use to remember which baseline is internal, so it can be changed
at will.

Btw, If anyone can tell how to make more than one quickdiff bar I'd like to know.

And, btw, move two of the Quickdiff commands to the quickdiff ruler. That wasn't possible when quickdiff was first implemented,
but it should be possible now.

-- robin
Previous Topic:JGit TagCommand
Next Topic:Saving remote repository information
Goto Forum:
  


Current Time: Sat Aug 23 01:33:52 EDT 2014

Powered by FUDForum. Page generated in 0.01781 seconds