Skip to main content

render_lines_as_written

Function render_lines_as_written 

Source
pub fn render_lines_as_written(path: &Path, config: &Config) -> Vec<String>
Expand description

render_lines in whichever spelling the file already uses.

For the three commands that repair this section without being asked to change it — init, unlock, lock. Only sync decides the spelling, and a repair that silently picked the other one would undo that decision: measured before this existed, an ordinary unlock rewrote a section written by sync --ignorecase back to the literal form and left git status dirty.

A file that matches neither spelling is out of date either way, and gets the literal one — the same default sync uses when nothing asks otherwise.