(original_head: &str)
| 4938 | } |
| 4939 | |
| 4940 | fn github_detect_dirty(original_head: &str) -> anyhow::Result<(bool, bool)> { |
| 4941 | let status = git_output(&["status", "--porcelain"])?; |
| 4942 | let has_uncommitted_changes = !status.trim().is_empty(); |
| 4943 | if has_uncommitted_changes { |
| 4944 | return Ok((true, true)); |
| 4945 | } |
| 4946 | let current_head = git_output(&["rev-parse", "HEAD"])?; |
| 4947 | Ok((current_head.trim() != original_head.trim(), false)) |
| 4948 | } |
| 4949 | |
| 4950 | fn github_commit_all( |
| 4951 | summary: &str, |
nothing calls this directly
no test coverage detected