You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last week I was playing around with gix blame recently upgraded by @cruessler.
I've made a clone of the linux repository and ran the following script to get the blame for CREDITS.
use gitoxide_core::repository::blame::blame_file;
fn main() -> anyhow::Result<()> {
// Set repository and file to read
let repo = gix::discover("./tmp/linux/").unwrap();
let file = OsStr::new("CREDITS");
let out = std::fs::File::create("./tmp/out.txt")?;
blame_file(repo, file, None, &mut std::io::BufWriter::new(out), Some(&mut std::io::stdout()))?;
Ok(())
}
The program hits one of the debug assertions with the following output:
@holodorum Thanks a lot for the report and the detailed reproduction! I’ll have a look! (Context: I know that there are edge cases that the graph traversal algorithm used by gix-blame does not handle well. So far, I haven’t been able to find the root cause for these errors, so this report is very helpful!)
Current behavior 😯
Last week I was playing around with gix blame recently upgraded by @cruessler.
I've made a clone of the linux repository and ran the following script to get the blame for CREDITS.
The program hits one of the debug assertions with the following output:
Expected behavior 🤔
Running the same code on the
README
file returns without errors.Git behavior
No response
Steps to reproduce 🕹
No response
The text was updated successfully, but these errors were encountered: