git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer.
  2008-02-24 23:18 [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer Roger C. Soares
@ 2008-02-24 22:40 ` Robin Rosenberg
  2008-02-25  0:07   ` Roger C. Soares
  0 siblings, 1 reply; 4+ messages in thread
From: Robin Rosenberg @ 2008-02-24 22:40 UTC (permalink / raw)
  To: Roger C. Soares; +Cc: git

måndagen den 25 februari 2008 skrev Roger C. Soares:
> ---
>  .../src/org/spearce/egit/ui/GitHistoryPage.java    |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

Looks ok, but what is the effect of refresh, besides possibly working around
other bugs? I would expect to to refresh with the selected resource as "filter",
but it doesn't.

-- robin

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

* [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer.
@ 2008-02-24 23:18 Roger C. Soares
  2008-02-24 22:40 ` Robin Rosenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Roger C. Soares @ 2008-02-24 23:18 UTC (permalink / raw)
  To: git; +Cc: robin.rosenberg, Roger C. Soares

---
 .../src/org/spearce/egit/ui/GitHistoryPage.java    |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java
index 2fc7afa..268a6ba 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/GitHistoryPage.java
@@ -1207,8 +1207,12 @@ public class GitHistoryPage extends HistoryPage implements IAdaptable,
 	}
 
 	public void refresh() {
-		// TODO Auto-generated method stub
-
+		if (historyRefreshJob.cancel()) {
+			System.out.println("rescheduling");
+			historyRefreshJob.schedule();
+		} else {
+			System.out.println("failed to cancel?");
+		}
 	}
 
 	public Object getAdapter(Class adapter) {
-- 
1.5.4.1

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

* Re: [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer.
  2008-02-24 22:40 ` Robin Rosenberg
@ 2008-02-25  0:07   ` Roger C. Soares
  2008-02-25  0:11     ` Robin Rosenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Roger C. Soares @ 2008-02-25  0:07 UTC (permalink / raw)
  To: Robin Rosenberg; +Cc: git


Robin Rosenberg escreveu:
> Looks ok, but what is the effect of refresh, besides possibly working around
> other bugs? I would expect to to refresh with the selected resource as "filter",
> but it doesn't.
>   
If you checkout a branch in gitk or commit something using git-gui or 
git command line, egit will be out of sync. Refresh updates the history 
view to the current status.

I'm not sure I understand what you were expecting, what do you mean by 
"filter"?

[]s,
Roger.

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

* Re: [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer.
  2008-02-25  0:07   ` Roger C. Soares
@ 2008-02-25  0:11     ` Robin Rosenberg
  0 siblings, 0 replies; 4+ messages in thread
From: Robin Rosenberg @ 2008-02-25  0:11 UTC (permalink / raw)
  To: Roger C. Soares; +Cc: git

måndagen den 25 februari 2008 skrev Roger C. Soares:
> 
> Robin Rosenberg escreveu:
> > Looks ok, but what is the effect of refresh, besides possibly working around
> > other bugs? I would expect to to refresh with the selected resource as "filter",
> > but it doesn't.
> >   
> If you checkout a branch in gitk or commit something using git-gui or 
> git command line, egit will be out of sync. Refresh updates the history 
> view to the current status.
Ok, thanks. I'll publish this.  

> I'm not sure I understand what you were expecting, what do you mean by 
> "filter"?

History is filtered using the selected item in the project explorer and
options from the buttons in the history brower.

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

end of thread, other threads:[~2008-02-25  0:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24 23:18 [EGIT PATCH] Refresh history when "Refresh" is clicked in the history viewer Roger C. Soares
2008-02-24 22:40 ` Robin Rosenberg
2008-02-25  0:07   ` Roger C. Soares
2008-02-25  0:11     ` Robin Rosenberg

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).