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.
1 parent 89de047 commit d6e146cCopy full SHA for d6e146c
src/stack/stack.rs
@@ -96,7 +96,10 @@ impl<'repo> Stack<'repo> {
96
/// The current branch is used if the optional branch name is not provided.
97
///
98
/// An error will be returned if there is no StGit stack associated with the branch.
99
- pub(crate) fn from_branch(repo: &'repo git2::Repository, branch_name: Option<&str>) -> Result<Self> {
+ pub(crate) fn from_branch(
100
+ repo: &'repo git2::Repository,
101
+ branch_name: Option<&str>,
102
+ ) -> Result<Self> {
103
let branch = repo.get_branch(branch_name)?;
104
let branch_name = get_branch_name(&branch)?;
105
let branch_head = branch.get().peel_to_commit()?;
0 commit comments