Bindings to libgit2 for interoperating with git repositories. This library is
both threadsafe and memory safe and allows both reading and writing git
repositories.
//! Test for `get_extensions`, which reads a global state maintained by libgit2
usegit2::opts::get_extensions;usegit2::Error;#[test]fntest_get_extensions()->Result<(), Error>{let extensions =unsafe{get_extensions()}?;assert_eq!(extensions.len(),1);assert_eq!(extensions.get(0),Some("noop"));Ok(())}