eazygit 0.5.1

A fast TUI for Git with staging, conflicts, rebase, and palette-first UX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(dead_code)]
use anyhow::Result;

/// Local-only accelerated git helpers (libgit2).
pub struct GitAccelerated; // unit struct: it's a struct with no fields yet
impl GitAccelerated {
    pub fn new() -> Self {
        Self
    }

    /// Example stub: parse status locally using libgit2.
    /// This defines a method status(&self, _path: &str) -> Result<()>. It borrows self immutably (&self) and takes a borrowed string slice for the path (&str). The underscore prefix on _path just silences “unused variable” warnings until we implement it. It returns Result<()> so we can propagate errors later.
    pub fn status(&self, _path: &str) -> Result<()> {
        // TODO: use git2 for local status/diff/log
        Ok(())
    }
}