pub fn update_gitattributes_block( root: &Path, lines: &[&str], ) -> Result<(), JoyError>
Update the joy-managed block in .gitattributes with the given lines. Replaces the block if it exists, appends otherwise.