git-lfs-creds 0.7.0

Credential helper bridge for Git LFS (git credential fill/approve/reject)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shared `GIT_TRACE` gate for the creds crate's tracerx-style logs.

/// Mirrors git's `GIT_TRACE` semantics: any value other than `""`,
/// `0`, `false`, `no`, `off` enables tracing.
pub(crate) fn trace_enabled() -> bool {
    match std::env::var_os("GIT_TRACE") {
        None => false,
        Some(v) => {
            let s = v.to_string_lossy().trim().to_lowercase();
            !matches!(s.as_str(), "" | "0" | "false" | "no" | "off")
        }
    }
}