core_lib/lib.rs
1//! # Watch module
2//!
3//! This module provides utilities to monitor remote Git branches and detect
4//! new commits.
5//!
6//! ## Functions
7//!
8//! ### `watch_once`
9//! Checks if a new commit is present on the tracked remote branch.
10//!
11//! - Compares last known local commit (`ctx.repo.last_commit`) with the remote.
12//! - Returns `Some(hash)` if a new commit is detected or `force_commit` is enabled.
13//! - Returns `None` if no new commit is detected.
14//! - Returns `Err` if an error occurs while fetching the remote hash.
15
16pub mod cli;
17pub mod config;
18pub mod core;
19pub mod daemon;
20pub mod exec;
21pub mod git;
22pub mod log;
23pub mod notifications;