Skip to content

v0.12.0

Choose a tag to compare

@ycookiey ycookiey released this 25 Oct 11:40

New built-in check git-add-own-check (PreToolUse, Bash): stops git add <file> of a tracked file that differs from HEAD unless this session made its first change with Edit or Write, as known from the mark stage-own-edit-reminder leaves (enable both). It stops once per session and file, so the diff can be checked first, and the same command sent again goes through; a file kept by git stage-own-edit begin is stopped every time, asking to stage the session's own lines with git stage-own-edit stage. Only files named one by one are checked; -A, ., folders and globs are not. A file rewritten from the shell never meets stage-own-edit-reminder, so without this check git add could take another session's uncommitted lines into a commit.