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 orforce_commitis enabled. - Returns
Noneif no new commit is detected. - Returns
Errif an error occurs while fetching the remote hash.