gn-core
The core engine for
git-notes— reading, writing, and merging decentralized Git notes with zero commit rewriting.
gn-core provides high-performance Git plumbing abstractions for creating, querying, and updating notes in custom references like refs/notes/comments, refs/notes/review, and refs/notes/todos.
⚡ Features
- Zero History Modification: Operates strictly on Git objects (
hash-object,mktree,commit-tree,update-ref). - Conflict-Free Merging: Built-in
UnionStrategyandLwwStrategy(Last-Write-Wins) for decentralized sync. - Threaded Discussions: Full support for hierarchical note threads anchored to specific files and line numbers.
- Pure Rust: Safe, fast, and cross-platform.
🚀 Quick Usage
Add gn-core to your Cargo.toml:
[]
= "0.1"
Writing a Note
use ;
Reading Notes
use ;
let engine = new;
let notes = engine.read_notes?;
for note in notes
🔗 Repository
Part of the git-notes project.