use std::{ffi::OsStr, path::Path};
use anyhow::{Context as _, bail, ensure};
use ely_gpui_component::git::{ChangeSection, DiffLine, LineKind, Stretch, mark_words};
use super::{Change, git, line, said, warnings};
/// `change`'s diff as `section` holds it, in Ely's stretches; none for a binary file.
pub fn diff(
top: &Path,
change: &Change,
section: ChangeSection,
) -> anyhow::Result