16

I would like to have popup notifications when people make commits to repositories that I am watching. Not hosted on any particular site like github or anything, so the ability to just add the repository URL to a list of watched repositories would be needed. And as the title says, this is for Ubuntu, but cross platform is welcome!

tshepang
  • 12,111
  • 21
  • 91
  • 136
jakeonrails
  • 1,885
  • 15
  • 37

3 Answers3

23

And thus, git-notify was born!

This little bash script will watch your origin/master for updates every 60 seconds and uses notify-send to alert you of new commits.

Community
  • 1
  • 1
jakeonrails
  • 1,885
  • 15
  • 37
1

If the repo isn't hosted locally (ie other people pushing to a repository hosted on your hard drive), you're probably going to need some form of polling, which is going to be slow and/or painful. Look at @Abizern's idea instead and create post-receive hooks in the repositories that send out emails whenever someone pushes to them. At my company we use the stock hook scripts included in the git suite, they're pretty fantastic and useful.

dunedain289
  • 2,348
  • 18
  • 21
  • I figured as much. Thought about writing some quick script to iterate over a list of repos and somehow check them for updates, and then use the notification API in ubuntu, but thought I'd check here first. – jakeonrails Feb 23 '11 at 04:30
0

Have you looked at writing post-commit hooks?

Abizern
  • 146,289
  • 39
  • 203
  • 257
  • 3
    No, but just because I'm looking for something that could watch repos that I don't have control over. Like for instance, a Repo hosted on Github or Assembla or something. – jakeonrails Feb 23 '11 at 04:28