git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EGIT compare editor
@ 2008-10-14 14:18 Chris Dumoulin
  2008-10-14 15:05 ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Dumoulin @ 2008-10-14 14:18 UTC (permalink / raw)
  To: git

I seem to have successfully installed EGIT in Eclipse 3.4.1, but I can't 
figure out how to bring up the compare editor to view diffs.

The EGIT plugin seems to be loaded and working for my project; I see 
"[Git @ master]" beside the project name, and ">" beside changed files. 
Also, the quickdiff seems to be working; I see a different colour in the 
left margin beside changes within the file. The "Team" context menu 
seems to be populated properly: "Commit", "Update Index (Refresh)", 
"Show in Resource History", "Assume unchanged", "Track (Add)", "Untrack 
(Remove)", "Apply Patch...", and below the separator "Show Local History".

I expect that after right-clicking on a changed file, I would have some 
option under "Compare With" or "Team" that would allow me to diff the 
current file against the HEAD or some other revision using the compare 
editor, but I can't seem to find any way to do this. How do I bring up 
the compare editor to view diffs?

Thanks,
Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EGIT compare editor
  2008-10-14 14:18 EGIT compare editor Chris Dumoulin
@ 2008-10-14 15:05 ` Shawn O. Pearce
  2011-03-08 21:01   ` chrismarx
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2008-10-14 15:05 UTC (permalink / raw)
  To: Chris Dumoulin; +Cc: git

Chris Dumoulin <dumoulin@oanda.com> wrote:
> I seem to have successfully installed EGIT in Eclipse 3.4.1, but I can't  
> figure out how to bring up the compare editor to view diffs.
>
> I expect that after right-clicking on a changed file, I would have some  
> option under "Compare With" or "Team" that would allow me to diff the  
> current file against the HEAD or some other revision using the compare  
> editor, but I can't seem to find any way to do this. How do I bring up  
> the compare editor to view diffs?

Robin knows the Eclipse integration better than I, but we may be
missing the feature to compare the working directory revision to
the last committed revision (or the index revision).

I'm pretty sure the compare editor is available in the History view
(Team -> Show resource in History) by double clicking the file
path when a commit node is selected.  But that's obviously only
historical diffs.

-- 
Shawn.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EGIT compare editor
  2008-10-14 15:05 ` Shawn O. Pearce
@ 2011-03-08 21:01   ` chrismarx
  0 siblings, 0 replies; 3+ messages in thread
From: chrismarx @ 2011-03-08 21:01 UTC (permalink / raw)
  To: git

This thread is really high in google searches, and threw me off when I first
started using git. I think most people who are finding this thread are
probably wanting to know how to compare files with egit, or why they can't
see the compare functionality at all. 

If you're using egit, and your project is setup properly in eclipse, then
you should be able to just right-click and compare-with (head, etc). If you
don't see this option, perhaps you're project isn't actually being managed
by egit. check that the project name has something like [yourproject
master/branch] attached the tittle, and that under "Team" (right click on
project) you're seeing git options/commands. If not, try team-share and hook
up your project to the right repository. 

Official reference guide is here -
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.egit.doc/help/EGit/User_Guide/Inspecting-the-state-of-the-Repository.html

--
View this message in context: http://git.661346.n2.nabble.com/EGIT-compare-editor-tp1332809p6142419.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-08 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 14:18 EGIT compare editor Chris Dumoulin
2008-10-14 15:05 ` Shawn O. Pearce
2011-03-08 21:01   ` chrismarx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).