[go: up one dir, main page]

git2 0.14.1

Bindings to libgit2 for interoperating with git repositories. This library is both threadsafe and memory safe and allows both reading and writing git repositories.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Test for `get_extensions`, which reads a global state maintained by libgit2

use git2::opts::get_extensions;
use git2::Error;

#[test]
fn test_get_extensions() -> Result<(), Error> {
    let extensions = unsafe { get_extensions() }?;

    assert_eq!(extensions.len(), 1);
    assert_eq!(extensions.get(0), Some("noop"));

    Ok(())
}