Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions crates/but-workspace/src/commit_engine/reference_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ impl ReferenceFrame {
) -> anyhow::Result<Self> {
let head_id = repo.head_id()?;
let workspace_commit = head_id.object()?.into_commit().decode()?.to_owned();
if workspace_commit.parents.len() < 2 {
return Ok(crate::commit_engine::ReferenceFrame {
workspace_tip: Some(head_id.detach()),
// The workspace commit is never the tip
#[allow(clippy::indexing_slicing)]
branch_tip: Some(workspace_commit.parents[0]),
});
}

let cache = repo.commit_graph_if_enabled()?;
let mut graph = repo.revision_graph(cache.as_ref());
Expand Down
Loading