Skip to main content

added_path_message

Function added_path_message 

Source
pub fn added_path_message(path: &str, reason: &str) -> String
Expand description

What: The direct-fix patch-conflict message for a file and a reason. Why: It names both ways out: select the file, or restore it to HEAD.

In TS you’d write (pseudocode):

const directFixMessage = ({ path, reason }) => `A policy fix needs to change ${path}, ...`;