Crate core_lib

Source
Expand description

§Watch module

This module provides utilities to monitor remote Git branches and detect new commits.

§Functions

§watch_once

Checks if a new commit is present on the tracked remote branch.

  • Compares last known local commit (ctx.repo.last_commit) with the remote.
  • Returns Some(hash) if a new commit is detected or force_commit is enabled.
  • Returns None if no new commit is detected.
  • Returns Err if an error occurs while fetching the remote hash.

Modules§

cli
config
core
daemon
exec
git
log
notifications