use Result;
use Repository;
/// Checks if the current directory is inside a Git work tree.
///
/// # Returns
///
/// A Result containing a boolean indicating if inside a work tree or an error.
/// Determines if the given diff represents a binary file.