Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Markers for unstaged/staged changes
Markers for unstaged/staged changes [message #797445] Mon, 13 February 2012 08:52 Go to next message
Eclipse UserFriend
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 380 times)
Re: Markers for unstaged/staged changes [message #797586 is a reply to message #797445] Mon, 13 February 2012 12:10 Go to previous messageGo to next message
Eclipse UserFriend
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 14:05 Go to previous messageGo to next message
Eclipse UserFriend
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 16:59 Go to previous messageGo to next message
Eclipse UserFriend
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 04:47 Go to previous messageGo to next message
Eclipse UserFriend
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 09:24 Go to previous message
Eclipse UserFriend
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 Jun 19 02:32:58 EDT 2025

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

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

Back to the top