Minor Changes
-
e29548c: The unsafe actions checks now cover more of the options and configuration that make
gitrun another program,
each requiringallowUnsafeExec:- the
--to-cmd,--cc-cmd,--header-cmdand--sendmail-cmdoptions ofgit send-email - the
-x/--extcmdoptions ofgit difftool - the
gc.recentObjectsHookconfiguration key
Abbreviated forms of the
send-emailoptions (for example--to-cm) are covered in the same way, asgit send-email
reads its options with Perl'sGetopt::Longand so isn't covered by the abbreviated options protection. When the recommended checks are enabled
(unsafe.recommended: trueorstrict: true), configuration keys ending inhookare also caught by the
catch-all rules underallowUnsafeCommandBinaries, alongside keys ending in.cmdorcommand. - the
-
0091a53: Create new interface
git.emptyTreeCommitto obtain the hash of the empty tree for the repo, the state prior to the
first commit. Useful as the base when diffing the first commit, for example withgit.diffSummary. -
9688ea1:
-cis now parsed per sub-command. It takes akey=valueconfiguration value in the global position and takes
a value for the sub-commands that define it that way (clone,commit,switchandnotes). For every other
sub-command it is a plain switch, matchinggit:grep -cis--count,log -c/diff -c/show -c
select the combined diff format andls-files -cis--cached.The token after a switch
-ckeeps its own meaning, so an option that follows it is analysed by the unsafe
actions checks in the same way as anywhere else in the command. When that token reads askey=valueit is
also still reported as an inline configuration write. -
1476c27: When the recommended checks are enabled (
unsafe.recommended: trueorstrict: true), options that write their
output to a path named in the command require the newunsafe.allowUnsafeOutputPathoption:--output=<file>on
diff-family commands,format-patchandarchive,format-patch -o/--output-directoryandarchive -o.
With the default settings these options work as before, and calls that don't name an output path are unaffected.preventFlagBuilderrules in@simple-git/argv-parsercan now report at therecommendedlevel.