diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-06-18 06:43:34 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-18 15:01:15 -0700 |
commit | a9d7689cd405883849fc5bc5427812654d59394f (patch) | |
tree | 5094ba6a02dbd00e68f0263753070b04243ad884 /blame.h | |
parent | Git 2.26.2 (diff) | |
download | tgif-a9d7689cd405883849fc5bc5427812654d59394f.tar.xz |
builtin/diff: update usage comment
A comment in cmd_diff() states that if one tree-ish and no blobs are
provided, (the "N=1, M=0" case), it will provide a diff between the tree
and the cache. This is incorrect because a diff happens between the
tree-ish and the working tree. Remove the `--cached` in the comment so
that the correct behavior is shown. Add a new section describing the
"N=1, M=0, --cached" behavior.
Next, describe the "N=0, M=0, --cached" case, similar to the above since
it is undocumented.
Finally, fix some spacing issues. Add spaces between each section for
consistency and readability. Also, change tabs within the comment into
spaces.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blame.h')
0 files changed, 0 insertions, 0 deletions