Skip to main content

check_staged

Function check_staged 

Source
pub fn check_staged(top: &Path) -> Result<(), String>
Expand description

Refuses a commit in the worktree at top whose index holds a file copied from the checkout (unstaged then) or whose staged change adds a copied secret value. Nothing is committed then.

§Errors

What was refused, naming the file or the variable — never a value.