Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Markers for unstaged/staged changes
Markers for unstaged/staged changes [message #797445] Mon, 13 February 2012 13:52 Go to next message
steve arch is currently offline steve archFriend
Messages: 3
Registered: February 2012
Junior Member
I've come from an SVN/VisualStudio background, and one of the nice features of VisualSVN is its ability to show you in the editor which lines have changed. In the bar down the edge of the code window (similar to where Eclipse shows the error/warnings/finding markers) it will show you whether you line has unsaved changes or changes that have been saved but not committed to the SVN repo.

I've looked around in the egit settings, but can't find anything that has this behaviour. Is this functionality available in egit to show you which lines of a file have been changed (either unsaved, saved or put in the staging area) on a line-by-line basis in the main editor rather than having to open up a diff window?

Like where the green arrows are in the attached image.
  • Attachment: egit.png
    (Size: 20.26KB, Downloaded 346 times)
Re: Markers for unstaged/staged changes [message #797586 is a reply to message #797445] Mon, 13 February 2012 17:10 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 13.02.2012 14:52, schrieb steve arch:
> I've come from an SVN/VisualStudio background, and one of the nice features of VisualSVN is its ability to show you in the editor which lines have changed. In the bar down the edge of the code window (similar to where Eclipse shows the error/warnings/finding markers) it will show you whether you line has unsaved changes or changes that have been saved but not committed to the SVN repo.
>
> I've looked around in the egit settings, but can't find anything that has this behaviour. Is this functionality available in egit to show you which lines of a file have been changed (either unsaved, saved or put in the staging area) on a line-by-line basis in the main editor rather than having to open up a diff window?
>
> Like where the green arrows are in the attached image.
I think this is platform behaviour which is configurable via Preferences->General->Editors->TextEditors->Quick Diff.
There you can also select Git revisions as reference source.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Markers for unstaged/staged changes [message #797657 is a reply to message #797586] Mon, 13 February 2012 19:05 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Correct, EGit supports quickdiff, the user guide explains how to switch it on [1].

[1] http://wiki.eclipse.org/EGit/User_Guide#Quickdiff
Re: Markers for unstaged/staged changes [message #797773 is a reply to message #797657] Mon, 13 February 2012 21:59 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Matthias Sohn skrev 2012-02-13 20.05:
> Correct, EGit supports quickdiff, the user guide explains how to switch it on [1].
>
> [1] http://wiki.eclipse.org/EGit/User_Guide#Quickdiff

Some trivia: Quickdiff support was the first usable function EGit had.

-- robin
Re: Markers for unstaged/staged changes [message #798139 is a reply to message #797773] Tue, 14 February 2012 09:47 Go to previous messageGo to next message
steve arch is currently offline steve archFriend
Messages: 3
Registered: February 2012
Junior Member
That's exactly what I was looking for. Thanks folks!
Re: Markers for unstaged/staged changes [message #799167 is a reply to message #798139] Wed, 15 February 2012 14:24 Go to previous message
steve arch is currently offline steve archFriend
Messages: 3
Registered: February 2012
Junior Member
Just a quick follow-up - is there any way to differentiate between staged and unstaged changes using this? At the moment, they both turn up the same colour.
Previous Topic:EGit safe operations
Next Topic:Pull authentication fail because of rsa authentication
Goto Forum:
  


Current Time: Thu Mar 28 23:07:46 GMT 2024

Powered by FUDForum. Page generated in 0.05001 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top