From: Patrick W. <pat...@ny...> - 2008-07-31 20:48:16
|
Paul, I found this just now after I saw your DotGitMonitor. You can define a RefreshProvider in the framework that auto-polls resources and subdirectories and handles changes. http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html -- Patrick |
From: Paul M. B. <pm...@ny...> - 2008-07-31 20:54:21
|
I tried using that, but I don't think it does what you think it does (that was part of my 2 days). If you can figure out how to use this instead, you are welcome... but I think the idea for it was if you had a better method than file-system polling. But you see, when you commit a file, that file does not change. So hitting refresh does nothing. And since the .git/ is a meta-file, it is not treated as an IResource... That is why I went the route I did. -P ----- Original Message ----- From: Patrick Winters <pat...@ny...> Date: Thursday, July 31, 2008 4:48 pm Subject: Auto Refresh Provider To: gitclipse-devel <git...@li...>, Paul Munson Bethe <pm...@ny...> > Paul, > I found this just now after I saw your DotGitMonitor. You can define > a RefreshProvider in the framework that auto-polls resources and > subdirectories and handles changes. > > http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html > -- > Patrick > > |
From: Patrick W. <pat...@ny...> - 2008-07-31 20:56:21
|
But we shouldn't have to poll the filesystem to be aware of a commit. All Git operations should notify the workspace or our plugin to refresh automatically. Right? -- Patrick On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: > I tried using that, but I don't think it does what you think it does (that was part of my 2 days). > > If you can figure out how to use this instead, you are welcome... > but I think the idea for it was if you had a better method than file-system polling. > > But you see, when you commit a file, that file does not change. So hitting refresh does nothing. > And since the .git/ is a meta-file, it is not treated as an IResource... > That is why I went the route I did. > > -P > > > ----- Original Message ----- > From: Patrick Winters <pat...@ny...> > Date: Thursday, July 31, 2008 4:48 pm > Subject: Auto Refresh Provider > To: gitclipse-devel <git...@li...>, Paul Munson Bethe <pm...@ny...> > > > > Paul, > > I found this just now after I saw your DotGitMonitor. You can define > > a RefreshProvider in the framework that auto-polls resources and > > subdirectories and handles changes. > > > > http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html > > -- > > Patrick > > > > |
From: Paul M. B. <pm...@ny...> - 2008-07-31 20:58:53
|
OK - but we would still need this or similar to detect user operations outside eclipse. ----- Original Message ----- From: Patrick Winters <pat...@ny...> Date: Thursday, July 31, 2008 4:56 pm Subject: Re: Auto Refresh Provider To: Paul Munson Bethe <pm...@ny...> Cc: gitclipse-devel <git...@li...> > But we shouldn't have to poll the filesystem to be aware of a commit. > All Git operations should notify the workspace or our plugin to refresh > automatically. Right? > -- > Patrick > > On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: > > I tried using that, but I don't think it does what you think it does > (that was part of my 2 days). > > > > If you can figure out how to use this instead, you are welcome... > > but I think the idea for it was if you had a better method than > file-system polling. > > > > But you see, when you commit a file, that file does not change. So > hitting refresh does nothing. > > And since the .git/ is a meta-file, it is not treated as an IResource... > > That is why I went the route I did. > > > > -P > > > > > > ----- Original Message ----- > > From: Patrick Winters <pat...@ny...> > > Date: Thursday, July 31, 2008 4:48 pm > > Subject: Auto Refresh Provider > > To: gitclipse-devel <git...@li...>, Paul > Munson Bethe <pm...@ny...> > > > > > > > Paul, > > > I found this just now after I saw your DotGitMonitor. You can define > > > a RefreshProvider in the framework that auto-polls resources and > > > subdirectories and handles changes. > > > > > > http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html > > > -- > > > Patrick > > > > > > > |
From: Patrick W. <pat...@ny...> - 2008-07-31 21:08:11
|
Still, if we need to detect user operations outside eclipse can't we offer a RefreshProvider for the .git resources? Do we still need to poll the entire project tree? On Thu, 2008-07-31 at 16:58 -0400, Paul Munson Bethe wrote: > OK - but we would still need this or similar to detect user operations outside eclipse. > > > ----- Original Message ----- > From: Patrick Winters <pat...@ny...> > Date: Thursday, July 31, 2008 4:56 pm > Subject: Re: Auto Refresh Provider > To: Paul Munson Bethe <pm...@ny...> > Cc: gitclipse-devel <git...@li...> > > > > But we shouldn't have to poll the filesystem to be aware of a commit. > > All Git operations should notify the workspace or our plugin to refresh > > automatically. Right? > > -- > > Patrick > > > > On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: > > > I tried using that, but I don't think it does what you think it does > > (that was part of my 2 days). > > > > > > If you can figure out how to use this instead, you are welcome... > > > but I think the idea for it was if you had a better method than > > file-system polling. > > > > > > But you see, when you commit a file, that file does not change. So > > hitting refresh does nothing. > > > And since the .git/ is a meta-file, it is not treated as an IResource... > > > That is why I went the route I did. > > > > > > -P > > > > > > > > > ----- Original Message ----- > > > From: Patrick Winters <pat...@ny...> > > > Date: Thursday, July 31, 2008 4:48 pm > > > Subject: Auto Refresh Provider > > > To: gitclipse-devel <git...@li...>, Paul > > Munson Bethe <pm...@ny...> > > > > > > > > > > Paul, > > > > I found this just now after I saw your DotGitMonitor. You can define > > > > a RefreshProvider in the framework that auto-polls resources and > > > > subdirectories and handles changes. > > > > > > > > http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html > > > > -- > > > > Patrick > > > > > > > > > > |
From: Paul M. B. <pm...@ny...> - 2008-07-31 21:25:09
|
I am not polling the whole tree... just the .git/HEAD and objects files. I am letting the standard eclipse stuff poll the tree. As I mentioned below, I don't think '.git' has an IResource associated. ----- Original Message ----- From: Patrick Winters <pat...@ny...> Date: Thursday, July 31, 2008 5:08 pm Subject: Re: Auto Refresh Provider To: Paul Munson Bethe <pm...@ny...> Cc: gitclipse-devel <git...@li...> > Still, if we need to detect user operations outside eclipse can't we > offer a RefreshProvider for the .git resources? Do we still need to > poll the entire project tree? > > On Thu, 2008-07-31 at 16:58 -0400, Paul Munson Bethe wrote: > > OK - but we would still need this or similar to detect user > operations outside eclipse. > > > > > > ----- Original Message ----- > > From: Patrick Winters <pat...@ny...> > > Date: Thursday, July 31, 2008 4:56 pm > > Subject: Re: Auto Refresh Provider > > To: Paul Munson Bethe <pm...@ny...> > > Cc: gitclipse-devel <git...@li...> > > > > > > > But we shouldn't have to poll the filesystem to be aware of a commit. > > > All Git operations should notify the workspace or our plugin to refresh > > > automatically. Right? > > > -- > > > Patrick > > > > > > On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: > > > > I tried using that, but I don't think it does what you think it > does > > > (that was part of my 2 days). > > > > > > > > If you can figure out how to use this instead, you are > welcome... > > > > but I think the idea for it was if you had a better method than > > > > file-system polling. > > > > > > > > But you see, when you commit a file, that file does not change. > So > > > hitting refresh does nothing. > > > > And since the .git/ is a meta-file, it is not treated as an IResource... > > > > That is why I went the route I did. > > > > > > > > -P > > > > > > > > > > > > ----- Original Message ----- > > > > From: Patrick Winters <pat...@ny...> > > > > Date: Thursday, July 31, 2008 4:48 pm > > > > Subject: Auto Refresh Provider > > > > To: gitclipse-devel <git...@li...>, > Paul > > > Munson Bethe <pm...@ny...> > > > > > > > > > > > > > Paul, > > > > > I found this just now after I saw your DotGitMonitor. You > can define > > > > > a RefreshProvider in the framework that auto-polls resources and > > > > > subdirectories and handles changes. > > > > > > > > > > http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html > > > > > -- > > > > > Patrick > > > > > > > > > > > > > > |
From: Andrew C. <ac...@co...> - 2008-07-31 21:31:56
|
.git/HEAD doesn't change unless you switch your branch right? If you want to monitor for commit changes I think you need to poll .git/refs/[branch]. I'm not sure about this though. -- Drew On Thu, 31 Jul 2008, Paul Munson Bethe wrote: > I am not polling the whole tree... just the .git/HEAD and objects files. > I am letting the standard eclipse stuff poll the tree. > > As I mentioned below, I don't think '.git' has an IResource associated. > > ----- Original Message ----- > From: Patrick Winters <pat...@ny...> > Date: Thursday, July 31, 2008 5:08 pm > Subject: Re: Auto Refresh Provider > To: Paul Munson Bethe <pm...@ny...> > Cc: gitclipse-devel <git...@li...> > > >> Still, if we need to detect user operations outside eclipse can't we >> offer a RefreshProvider for the .git resources? Do we still need to >> poll the entire project tree? >> >> On Thu, 2008-07-31 at 16:58 -0400, Paul Munson Bethe wrote: >>> OK - but we would still need this or similar to detect user >> operations outside eclipse. >>> >>> >>> ----- Original Message ----- >>> From: Patrick Winters <pat...@ny...> >>> Date: Thursday, July 31, 2008 4:56 pm >>> Subject: Re: Auto Refresh Provider >>> To: Paul Munson Bethe <pm...@ny...> >>> Cc: gitclipse-devel <git...@li...> >>> >>> >>>> But we shouldn't have to poll the filesystem to be aware of a commit. >>>> All Git operations should notify the workspace or our plugin to refresh >>>> automatically. Right? >>>> -- >>>> Patrick >>>> >>>> On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: >>>>> I tried using that, but I don't think it does what you think it >> does >>>> (that was part of my 2 days). >>>>> >>>>> If you can figure out how to use this instead, you are >> welcome... >>>>> but I think the idea for it was if you had a better method than >> >>>> file-system polling. >>>>> >>>>> But you see, when you commit a file, that file does not change. >> So >>>> hitting refresh does nothing. >>>>> And since the .git/ is a meta-file, it is not treated as an IResource... >>>>> That is why I went the route I did. >>>>> >>>>> -P >>>>> >>>>> >>>>> ----- Original Message ----- >>>>> From: Patrick Winters <pat...@ny...> >>>>> Date: Thursday, July 31, 2008 4:48 pm >>>>> Subject: Auto Refresh Provider >>>>> To: gitclipse-devel <git...@li...>, >> Paul >>>> Munson Bethe <pm...@ny...> >>>>> >>>>> >>>>>> Paul, >>>>>> I found this just now after I saw your DotGitMonitor. You >> can define >>>>>> a RefreshProvider in the framework that auto-polls resources and >>>>>> subdirectories and handles changes. >>>>>> >>>>>> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html >>>>>> -- >>>>>> Patrick >>>>>> >>>>>> >>>> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gitclipse-devel mailing list > Git...@li... > https://lists.sourceforge.net/lists/listinfo/gitclipse-devel > |
From: <pm...@ny...> - 2008-07-31 21:40:49
|
I monitor .git/objects for commit changes. Sent via BlackBerry -----Original Message----- From: Andrew Case <ac...@co...> Date: Thu, 31 Jul 2008 17:32:00 To: Paul Munson Bethe<pm...@ny...> Cc: Patrick Winters<pat...@ny...>; gitclipse-devel<git...@li...> Subject: Re: [Gitclipse-devel] Auto Refresh Provider .git/HEAD doesn't change unless you switch your branch right? If you want to monitor for commit changes I think you need to poll .git/refs/[branch]. I'm not sure about this though. -- Drew On Thu, 31 Jul 2008, Paul Munson Bethe wrote: > I am not polling the whole tree... just the .git/HEAD and objects files. > I am letting the standard eclipse stuff poll the tree. > > As I mentioned below, I don't think '.git' has an IResource associated. > > ----- Original Message ----- > From: Patrick Winters <pat...@ny...> > Date: Thursday, July 31, 2008 5:08 pm > Subject: Re: Auto Refresh Provider > To: Paul Munson Bethe <pm...@ny...> > Cc: gitclipse-devel <git...@li...> > > >> Still, if we need to detect user operations outside eclipse can't we >> offer a RefreshProvider for the .git resources? Do we still need to >> poll the entire project tree? >> >> On Thu, 2008-07-31 at 16:58 -0400, Paul Munson Bethe wrote: >>> OK - but we would still need this or similar to detect user >> operations outside eclipse. >>> >>> >>> ----- Original Message ----- >>> From: Patrick Winters <pat...@ny...> >>> Date: Thursday, July 31, 2008 4:56 pm >>> Subject: Re: Auto Refresh Provider >>> To: Paul Munson Bethe <pm...@ny...> >>> Cc: gitclipse-devel <git...@li...> >>> >>> >>>> But we shouldn't have to poll the filesystem to be aware of a commit. >>>> All Git operations should notify the workspace or our plugin to refresh >>>> automatically. Right? >>>> -- >>>> Patrick >>>> >>>> On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: >>>>> I tried using that, but I don't think it does what you think it >> does >>>> (that was part of my 2 days). >>>>> >>>>> If you can figure out how to use this instead, you are >> welcome... >>>>> but I think the idea for it was if you had a better method than >> >>>> file-system polling. >>>>> >>>>> But you see, when you commit a file, that file does not change. >> So >>>> hitting refresh does nothing. >>>>> And since the .git/ is a meta-file, it is not treated as an IResource... >>>>> That is why I went the route I did. >>>>> >>>>> -P >>>>> >>>>> >>>>> ----- Original Message ----- >>>>> From: Patrick Winters <pat...@ny...> >>>>> Date: Thursday, July 31, 2008 4:48 pm >>>>> Subject: Auto Refresh Provider >>>>> To: gitclipse-devel <git...@li...>, >> Paul >>>> Munson Bethe <pm...@ny...> >>>>> >>>>> >>>>>> Paul, >>>>>> I found this just now after I saw your DotGitMonitor. You >> can define >>>>>> a RefreshProvider in the framework that auto-polls resources and >>>>>> subdirectories and handles changes. >>>>>> >>>>>> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html >>>>>> -- >>>>>> Patrick >>>>>> >>>>>> >>>> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gitclipse-devel mailing list > Git...@li... > https://lists.sourceforge.net/lists/listinfo/gitclipse-devel > |
From: Andrew C. <ac...@co...> - 2008-07-31 21:28:17
|
Can't we just poll .git/refs/heads/[branch] (doesn't javagit have an option for this)? -- Drew On Thu, 31 Jul 2008, Patrick Winters wrote: > Still, if we need to detect user operations outside eclipse can't we > offer a RefreshProvider for the .git resources? Do we still need to > poll the entire project tree? > > On Thu, 2008-07-31 at 16:58 -0400, Paul Munson Bethe wrote: >> OK - but we would still need this or similar to detect user operations outside eclipse. >> >> >> ----- Original Message ----- >> From: Patrick Winters <pat...@ny...> >> Date: Thursday, July 31, 2008 4:56 pm >> Subject: Re: Auto Refresh Provider >> To: Paul Munson Bethe <pm...@ny...> >> Cc: gitclipse-devel <git...@li...> >> >> >>> But we shouldn't have to poll the filesystem to be aware of a commit. >>> All Git operations should notify the workspace or our plugin to refresh >>> automatically. Right? >>> -- >>> Patrick >>> >>> On Thu, 2008-07-31 at 16:54 -0400, Paul Munson Bethe wrote: >>>> I tried using that, but I don't think it does what you think it does >>> (that was part of my 2 days). >>>> >>>> If you can figure out how to use this instead, you are welcome... >>>> but I think the idea for it was if you had a better method than >>> file-system polling. >>>> >>>> But you see, when you commit a file, that file does not change. So >>> hitting refresh does nothing. >>>> And since the .git/ is a meta-file, it is not treated as an IResource... >>>> That is why I went the route I did. >>>> >>>> -P >>>> >>>> >>>> ----- Original Message ----- >>>> From: Patrick Winters <pat...@ny...> >>>> Date: Thursday, July 31, 2008 4:48 pm >>>> Subject: Auto Refresh Provider >>>> To: gitclipse-devel <git...@li...>, Paul >>> Munson Bethe <pm...@ny...> >>>> >>>> >>>>> Paul, >>>>> I found this just now after I saw your DotGitMonitor. You can define >>>>> a RefreshProvider in the framework that auto-polls resources and >>>>> subdirectories and handles changes. >>>>> >>>>> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/refresh/RefreshProvider.html >>>>> -- >>>>> Patrick >>>>> >>>>> >>> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gitclipse-devel mailing list > Git...@li... > https://lists.sourceforge.net/lists/listinfo/gitclipse-devel > |