Expand description
jouet commit PATH... -m MSG: commit only the named paths.
In a checkout shared by several sessions, git add -A or git commit -a
sweeps up whatever else is there: untracked caches, build output, another
session’s half-done work. This commits exactly the paths given, as they
are in the working tree, with git commit --only, so anything else
already staged stays staged and out of the commit. Untracked files are
added only when a named path covers them, and are unstaged again if the
commit fails.
Hooks run as they would for git commit; --no-verify is never passed.
git’s output, hooks included, goes to a log, and a failed commit reports
the end of it.
A Scanner may look at the content first: run_scanned builds a
temporary index holding HEAD plus the named paths, exactly what git commit --only will record, and refuses the commit when the scanner
finds a secret there. The real index is never touched.
Structs§
- Failure
- The output of a commit that git refused, usually because a hook failed.
- File
- Report
- Request
- Secret
Finding - One secret, found in one file: a fnox secret’s value, named by
secret, or what a gitleaks rule matched, named byrule. - Secret
Scan - A secret scan of the content a commit would record.
Enums§
Traits§
- Scanner
- Scans the content a commit would record.
Functions§
- run
- Checks the request, then commits (or, for a dry run, reports what would
be committed). A commit git refuses is
Okwithfailureset. - run_
scanned run, withscannerreading the content before it is committed. A secret it finds isOkwithsecret_scansaying so, and nothing is committed or left staged. A dry run does not scan.