Skip to content

Commit

Permalink
Add Branch::get_mut() (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhickman authored Feb 24, 2020
1 parent 850c9b9 commit 9071a87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ impl<'repo> Branch<'repo> {
&self.inner
}

/// Gain mutable access to the reference that is this branch
pub fn get_mut(&mut self) -> &mut Reference<'repo> {
&mut self.inner
}

/// Take ownership of the underlying reference.
pub fn into_reference(self) -> Reference<'repo> {
self.inner
Expand Down

0 comments on commit 9071a87

Please sign in to comment.