Creates a commit with the given message. Returns the commit SHA.
(&self, message: &str)
| 53 | /// Creates a commit with the given message. |
| 54 | /// Returns the commit SHA. |
| 55 | pub fn commit(&self, message: &str) -> Result<String> { |
| 56 | self.run_git_command(&["commit", "-m", message]) |
| 57 | .context("Failed to create commit")?; |
| 58 | |
| 59 | self.get_current_commit() |
| 60 | } |
| 61 | |
| 62 | /// Gets the SHA of the current commit. |
| 63 | pub fn get_current_commit(&self) -> Result<String> { |
no test coverage detected