Skip to main content

Module git

Module git 

Source

Structs§

Git

Constants§

DEFAULT_DIFF_LIMIT

Functions§

format_diff_for_llm
Format a raw unified diff into a compact, LLM-friendly form. Truncation is UTF-8 boundary safe (the original tool sliced at a byte offset and could panic on multi-byte characters).
truncate_str
Truncate to at most limit bytes without splitting a UTF-8 character.