TL;
DR
Ich mag würde wissen, was diese --exit-code
bedeutet [...]
--exit-code
ein diff-*
Option ist, die die Git Befehl exit mit 1
macht, wenn es Änderungen gibt, und 0
sonst.
[...] aber ich kann es nirgends finden.
Sie können darüber in der git-diff
man-Seite lesen, aber nicht in der git-log
Mann Seite, weil es keinen Sinn, im Rahmen der git-log
macht.
Mehr Details
Beide --check
und --exit-code
sind in der git-diff
Manpage (genauer gesagt, in Documentation/diff-options.txt
) beschrieben:
--check
Warn if changes introduce whitespace errors. What are considered
whitespace errors is controlled by core.whitespace configuration.
By default, trailing whitespaces (including lines that solely
consist of whitespaces) and a space character that is immediately
followed by a tab character inside the initial indent of the line
are considered whitespace errors. Exits with non-zero status if
problems are found. Not compatible with --exit-code.
und
--exit-code
Make the program exit with codes similar to diff(1). That is, it
exits with 1 if there were differences and 0 means no differences.
Einige, wenn auch nicht alle, diff-*
Optionen sind kompatibel mit git-log
. Die --check
Option ist, während die --exit-code
Option ist nicht, wie bei der folgenden commit message vom Git-project repository angedeutet:
docs: nicht --quiet
oder --exit-code
in git-log (1) erwähnen
These sind diff
-Optionen, aber sie machen keinen Sinn im Zusammenhang mit log
.
(1) diff-*
steht für die Sanitär-Befehle, die Porzellan git-diff
basiert.