Skip to content

Commit 495b8dc

Browse files
committed
Repository: Add doc comment for perform_commit_and_push()
1 parent 5ee5b93 commit 495b8dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/git.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ impl Repository {
223223
Ok(self.repository.head()?.target().unwrap())
224224
}
225225

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!
226231
fn perform_commit_and_push(&self, msg: &str, modified_file: &Path) -> Result<(), PerformError> {
227232
// git add $file
228233
let mut index = self.repository.index()?;

0 commit comments

Comments
 (0)