We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
perform_commit_and_push()
1 parent 5ee5b93 commit 495b8dcCopy full SHA for 495b8dc
src/git.rs
@@ -223,6 +223,11 @@ impl Repository {
223
Ok(self.repository.head()?.target().unwrap())
224
}
225
226
+ /// Commits the specified file with the specified commit message and pushes
227
+ /// the commit to the `master` branch on the `origin` remote.
228
+ ///
229
+ /// Note that `modified_file` expects a file path **relative** to the
230
+ /// repository working folder!
231
fn perform_commit_and_push(&self, msg: &str, modified_file: &Path) -> Result<(), PerformError> {
232
// git add $file
233
let mut index = self.repository.index()?;
0 commit comments