diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-10-29 09:54:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-02 13:16:41 +0900 |
commit | 0115e5d929d06ad41eff83742a3e6a1e91ecc0c4 (patch) | |
tree | 3f992d142bc62c2b71cc98581c11407f4fb58e49 /Documentation/manpage-bold-literal.xsl | |
parent | Git 2.23 (diff) | |
download | tgif-0115e5d929d06ad41eff83742a3e6a1e91ecc0c4.tar.xz |
git-diff.txt: document return code of `--no-index`
Within diff_no_index(), we have the following:
revs->diffopt.flags.exit_with_status = 1;
...
/*
* The return code for --no-index imitates diff(1):
* 0 = no changes, 1 = changes, else error
*/
return diff_result_code(&revs->diffopt, 0);
Which means when `git diff` is run in `--no-index` mode, `--exit-code`
is implied. However, the documentation for this is missing in
git-diff.txt.
Add a note about how `--exit-code` is implied in the `--no-index`
documentation to cover this documentation blindspot.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/manpage-bold-literal.xsl')
0 files changed, 0 insertions, 0 deletions