Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// This is free and unencumbered software released into the public domain.

use crate::var;

/// See: https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
pub fn git() -> Option<String> {
    var("GIT")
}

/// See: https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
pub fn git_dir() -> Option<String> {
    var("GIT_DIR")
}