Skip to main content

format_diff_chat_message

Function format_diff_chat_message 

Source
pub fn format_diff_chat_message(
    path: &str,
    diff_text: &str,
    added: usize,
    removed: usize,
) -> String
Expand description

Format a chat-facing message for a file diff: a one-line header with the path and +N -M stats, followed by a fenced ```diff block.