Skip to content

Commit a8d5bca

Browse files
committed
Repository: Add doc comment for reset_head()
1 parent 8180544 commit a8d5bca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/git.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ impl Repository {
294294
})
295295
}
296296

297+
/// Fetches any changes from the `origin` remote and performs a hard reset
298+
/// to the tip of the `origin/master` branch.
297299
pub fn reset_head(&self) -> Result<(), PerformError> {
298300
let mut origin = self.repository.find_remote("origin")?;
299301
let original_head = self.head_oid()?;

0 commit comments

Comments
 (0)