(root: &Path, message: &str)
| 103 | } |
| 104 | |
| 105 | fn git_commit(root: &Path, message: &str) -> String { |
| 106 | git(root, &["add", "."]); |
| 107 | git(root, &["commit", "-q", "-m", message]); |
| 108 | git(root, &["rev-parse", "HEAD"]) |
| 109 | } |
| 110 | |
| 111 | /// Run a Git command with stdin and return trimmed stdout (used for |
| 112 | /// plumbing like `commit-tree`, whose stdin carries the commit message). |
no test coverage detected