Skip to content

Commit

Permalink
Fix breaking change in gix Tree::loop_entry_by_path
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored and archseer committed Nov 13, 2024
1 parent b5d56e5 commit 9806ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-vcs/src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ fn find_file_in_commit(repo: &Repository, commit: &Commit, file: &Path) -> Resul
let rel_path = file.strip_prefix(repo_dir)?;
let tree = commit.tree()?;
let tree_entry = tree
.lookup_entry_by_path(rel_path, &mut Vec::new())?
.lookup_entry_by_path(rel_path)?
.context("file is untracked")?;
match tree_entry.mode().kind() {
// not a file, everything is new, do not show diff
Expand Down

0 comments on commit 9806ca0

Please sign in to comment.