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