feat(core): implement Git repository operations with gRPC services

- Add advertise_refs functionality for Git protocol communication
- Implement archive service with TAR/ZIP format support and streaming
- Create blame service for Git file annotation with line tracking
- Add branch management including create, delete, rename and compare operations
- Implement merge checking with conflict detection and fast-forward handling
- Add cherry-pick functionality for applying commits between branches
- Integrate gix library for Git repository operations and object handling
- Add comprehensive test suite covering all Git operations
- Implement proper error handling and repository validation
- Add pagination support for large result sets
- Create protobuf definitions for all Git operations and data structures
- Add build system for gRPC code generation and dependency management
This commit is contained in:
zhenyi
2026-06-04 13:05:38 +08:00
commit dcb0fb74c5
98 changed files with 20569 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
[package]
name = "gitks"
version = "1.0.0"
edition = "2024"
authors = ["gitks contributors"]
description = "A gRPC-accessible Git repository operations library for bare repositories"
repository = ""
readme = ""
homepage = ""
license = "PolyForm-Noncommercial-1.0.0"
keywords = ["git", "grpc", "bare-repository", "gix"]
categories = ["development-tools"]
documentation = ""
[lib]
path = "lib.rs"
name = "gitks"
[dependencies]
serde = { version = "1.0.228", features = ["derive"] }
gix = { version = "0.84.0", default-features = false, features = ["serde", "blame", "sha256", "sha1", "tracing", "merge", "max-performance-safe", "revision"] }
gix-archive = { version = "0.33.0", features = ["sha256","sha1","document-features"] }
duct = { version = "1.1.1", features = [] }
tracing = { version = "0.1.32", features = ["log"] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "io-util", "sync"] }
tokio-stream = { version = "0.1.18", features = ["full"] }
thiserror = { version = "2.0.18", features = [] }
prost = "0.13"
prost-types = "0.13"
tonic = { version = "0.12", features = ["transport"] }
tempfile = "3"
[build-dependencies]
tonic-build = "0.12"