Skip to main content

NO_PATHSPEC_MESSAGE

Constant NO_PATHSPEC_MESSAGE 

Source
pub const NO_PATHSPEC_MESSAGE: &str = "cli-git: git commit requires an explicit pathspec when commit-only enforcement is active. \
Name the paths in the commit command (for example, git commit -m <msg> <path>), \
pass --pathspec-from-file, pass --no-only to commit the entire index, \
or pass --no-enforce-only to bypass for this invocation.";
Expand description

Diagnostic for a commit with no pathspec source and no mode that permits a pathless only-commit.