Update compare window immediately
commit6566ae425879a5890521ed7332d643e89761ea0f
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 7 May 2007 21:29:27 +0000 (7 23:29 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 8 May 2007 02:59:12 +0000 (7 22:59 -0400)
tree40639648adf5a034b6a872f1ef93c645702db497
parente8fb65ea9df415bbc7024c38ddbce85c9f353d09
Update compare window immediately

Compute the commit diff for the selected revision in the history
view immediately when one version is selected if selection is
made with the left mouse button and a compare window is already
open. Thanks to the way git data structures are designed the diff
is usually instantenous.

We can't have it this way in the long run. Figure out something
better, like adding an icon to the history view for selecting
behaviour. Another ugly hack is the way I detect which mouse
button was clicked, if any so that right-clicking on a history
item does not cause the diff to be changed.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java