git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there a library for monitoring a git repository for any changes?
@ 2013-06-07  3:16 Robert Martin
  2013-06-07 13:00 ` Magnus Bäck
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Martin @ 2013-06-07  3:16 UTC (permalink / raw)
  To: git

Hi git,

I want to work on a visualization program for git. I was hoping there
was a library that would allow me to monitor a git repo for changes.
Consider it like inotify, but for a git repository (in fact, I think
it would probably have inotify under the hood).

This hypothetical library would trigger an event any time the
repository was modified, i.e. any time the graph that represents
history was changed.

Is there such a library? If not, is there a better way to monitor the
repository so that I wouldn't need to write it myself? Would anyone
else be interested if I wrote it myself?

Cheers,


Robert

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

* Re: Is there a library for monitoring a git repository for any changes?
  2013-06-07  3:16 Is there a library for monitoring a git repository for any changes? Robert Martin
@ 2013-06-07 13:00 ` Magnus Bäck
  0 siblings, 0 replies; 2+ messages in thread
From: Magnus Bäck @ 2013-06-07 13:00 UTC (permalink / raw)
  To: Robert Martin; +Cc: git

On Thursday, June 06, 2013 at 23:16 EDT,
     Robert Martin <rdmartin3@gmail.com> wrote:

> I want to work on a visualization program for git. I was hoping there
> was a library that would allow me to monitor a git repo for changes.
> Consider it like inotify, but for a git repository (in fact, I think
> it would probably have inotify under the hood).
> 
> This hypothetical library would trigger an event any time the
> repository was modified, i.e. any time the graph that represents
> history was changed.
> 
> Is there such a library? If not, is there a better way to monitor the
> repository so that I wouldn't need to write it myself? Would anyone
> else be interested if I wrote it myself?

'git ls-remote'? Either run periodically or, if the monitored git is
local, triggered via inotify. If you have control over the git perhaps
a post-receive hook would be useful too.

-- 
Magnus Bäck
baeck@google.com

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

end of thread, other threads:[~2013-06-07 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07  3:16 Is there a library for monitoring a git repository for any changes? Robert Martin
2013-06-07 13:00 ` Magnus Bäck

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