pub fn expand_git_path(path_str: &str) -> PathBuf
Expands “~/” to “$HOME/” as Git seems to do for e.g. core.excludesFile.