Skip to content

Commit

Permalink
Tweaks & increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmmm committed Jun 16, 2021
1 parent 3ead237 commit ed88447
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "autorebase"
version = "0.4.0"
version = "0.4.1"
authors = ["Tim Hutt <timh@graphcore.ai>"]
edition = "2018"
license = "MIT"
Expand Down
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,8 @@ fn get_branches(repo_path: &Path) -> Result<Vec<BranchInfo>> {
worktree,
})
})
.filter(|branch| match branch {
Ok(b) if b.branch == TEMPORARY_BRANCH_NAME => false,
_ => true,
})
// This temporary branch should have been deleted but filter it out just in case something went wrong.
.filter(|branch| !matches!(branch, Ok(b) if b.branch == TEMPORARY_BRANCH_NAME))
.collect::<Result<_, _>>()?;
Ok(branches)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct CommitDescription {
message: String,
/// Map from filename to the new contents or None to delete it.
changes: HashMap<String, Option<String>>,
/// Branch names on this commit.
/// Branch names on this commit, and their upstream branch if any.
branches: Vec<(String, Option<String>)>,
/// Child commits.
children: Vec<CommitDescription>,
Expand Down

0 comments on commit ed88447

Please sign in to comment.