ku1ik / git-dude

Git commit notifier
http://ku1ik.com/
GNU General Public License v3.0
948 stars 68 forks source link

Check once and exit instead of looping #45

Closed tekdoc closed 6 years ago

tekdoc commented 6 years ago

Some users may prefer to schedule git repository checks at set times rather than checking continuously (to reduce hits on remote servers for instance). With this patch, if git-dude's check interval set to 0, the script exits after a single check. Then, using systemd timers in Linux or launchd launch agents in OS X, git-dude runs can be scheduled as desired.

ku1ik commented 6 years ago

That's great idea, thanks! 👍