(git_repo: &GitRepository)
| 151 | } |
| 152 | |
| 153 | fn current_git_branch(git_repo: &GitRepository) -> Option<String> { |
| 154 | let head = git_repo.head().ok()?; |
| 155 | if !head.is_branch() { |
| 156 | return None; |
| 157 | } |
| 158 | head.shorthand().map(ToOwned::to_owned) |
| 159 | } |
| 160 | |
| 161 | const GIT_SHADOW_EXCLUDE_PATTERNS: &[&str] = &["/.atomic/", "/.vault/", "/.atomicignore"]; |
| 162 |
no outgoing calls
no test coverage detected