guardy 0.2.4

Fast, secure git hooks in Rust with secret scanning and protected file synchronization
Documentation
//! Repository synchronization module
//!
//! This module provides functionality for keeping files synchronized across repositories.
//! It allows you to maintain consistent configurations by syncing files from upstream sources.
//!
//! ## Features
//!
//! - Version pinning to specific tags, branches, or commits
//! - Selective sync with include/exclude patterns
//! - Automatic restoration of modified protected files
//! - Multi-repository configuration support
//!
//! ## Hook Integration
//!
//! Sync can be integrated into git hooks for automatic synchronization:
//!
//! ```yaml
//! sync:
//!   repos:
//!     - name: "shared-configs"
//!       repo: "https://github.com/org/shared-configs"
//!       version: "v1.0.0"
//!       source_path: ".github"
//!       dest_path: "./.github"
//!       include: ["**/*"]
//!       exclude: ["*.md"]
//!
//! hooks:
//!   pre-push:
//!     enabled: true
//!     custom:
//!       - command: "guardy sync update --force --config ./guardy.yaml"
//!         description: "Sync protected files before push"
//!         fail_on_error: true
//! ```
//!
//! ## Usage
//!
//! ```bash
//! # Check sync status
//! guardy sync status
//!
//! # Interactive sync with diffs
//! guardy sync
//!
//! # Force sync all changes
//! guardy sync update --force
//! ```

pub mod manager;
pub mod status;

#[derive(Debug)]
pub enum SyncStatus {
    InSync,
    OutOfSync {
        changed_files: Vec<std::path::PathBuf>,
    },
    NotConfigured,
}