Function git2::opts::set_extensions

source ·
pub unsafe fn set_extensions<E>(extensions: &[E]) -> Result<(), Error>where
    for<'x> &'x E: IntoCString,
Expand description

Set that the given git extensions are supported by the caller. Extensions supported by libgit2 may be negated by prefixing them with a !. For example: setting extensions to [ "!noop", "newext" ] indicates that the caller does not want to support repositories with the noop extension but does want to support repositories with the newext extension.

Safety

libgit2 stores user extensions in a static variable. This function is effectively modifying a static mut and should be treated as such