gitdataai/libs/git/lib.rs
ZhenYi eeb99bf628
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
refactor(git): drop hook pool, sync execution is now direct and sequential
- Remove entire pool/ directory (RedisConsumer, CpuMonitor, LogStream, HookTask, TaskType)
- Remove Redis distributed lock (acquire_lock/release_lock) — K8s StatefulSet
  scheduling guarantees exclusive access per repo shard
- Remove sync/lock.rs, sync/remote.rs, sync/status.rs (dead code)
- Remove hook/event.rs (GitHookEvent was never used)
- New HookService exposes sync_repo / fsck_repo / gc_repo directly
- ReceiveSyncService now calls HookService inline instead of LPUSH to Redis queue
- sync/mod.rs: git2 operations wrapped in spawn_blocking for Send safety
  (git2 types are not Send — async git2 operations must not cross await points)
- scripts/push.js: drop 'frontend' from docker push list (embedded into static binary)
2026-04-17 12:22:09 +08:00

45 lines
1.5 KiB
Rust

pub mod archive;
pub mod blame;
pub mod blob;
pub mod branch;
pub mod commit;
pub mod config;
pub mod description;
pub mod diff;
pub mod domain;
pub mod error;
pub mod hook;
pub mod http;
pub mod lfs;
pub mod merge;
pub(crate) mod ref_utils;
pub mod reference;
pub mod ssh;
pub mod tags;
pub mod tree;
pub use archive::types::{ArchiveEntry, ArchiveFormat, ArchiveOptions, ArchiveSummary};
pub use blame::ops::BlameOptions;
pub use blob::types::{BlobContent, BlobInfo};
pub use branch::types::{BranchDiff, BranchInfo, BranchSummary};
pub use commit::graph::{CommitGraph, CommitGraphLine, CommitGraphOptions};
pub use commit::traverse::CommitWalkOptions;
pub use commit::types::{
CommitBlameHunk, CommitBlameLine, CommitDiffFile, CommitDiffHunk, CommitDiffStats, CommitMeta,
CommitOid, CommitRefInfo, CommitReflogEntry, CommitSignature, CommitSort,
};
pub use config::types::{ConfigEntry, ConfigSnapshot};
pub use diff::ops::diff_to_side_by_side;
pub use diff::types::{
DiffDelta, DiffDeltaStatus, DiffFile, DiffHunk, DiffLine, DiffOptions, DiffResult, DiffStats,
SideBySideChangeType, SideBySideDiffResult, SideBySideFile, SideBySideLine,
};
pub use domain::GitDomain;
pub use error::{GitError, GitResult};
pub use hook::sync::HookMetaDataSync;
pub use lfs::types::{LfsConfig, LfsEntry, LfsOid, LfsPointer};
pub use merge::types::{MergeAnalysisResult, MergeOptions, MergePreferenceResult, MergeheadInfo};
pub use reference::types::RefInfo;
pub use tags::types::{TagInfo, TagSummary};
pub use tree::types::{TreeEntry, TreeInfo};