All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Magnus Bäck" <baeck@google.com>
To: Robert Martin <rdmartin3@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Is there a library for monitoring a git repository for any changes?
Date: Fri, 7 Jun 2013 09:00:46 -0400	[thread overview]
Message-ID: <20130607130042.GA28057@google.com> (raw)
In-Reply-To: <CABaQ0JgJaCY-LXHjXMq_7NTgHf2GqN4Ond7rm61jfLAV-gEgRQ@mail.gmail.com>

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

      reply	other threads:[~2013-06-07 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130607130042.GA28057@google.com \
    --to=baeck@google.com \
    --cc=git@vger.kernel.org \
    --cc=rdmartin3@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.