summaryrefslogtreecommitdiff
path: root/trace2/tr2_cmd_name.h
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2020-06-18 06:43:34 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-18 15:01:15 -0700
commita9d7689cd405883849fc5bc5427812654d59394f (patch)
tree5094ba6a02dbd00e68f0263753070b04243ad884 /trace2/tr2_cmd_name.h
parentGit 2.26.2 (diff)
downloadtgif-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 'trace2/tr2_cmd_name.h')
0 files changed, 0 insertions, 0 deletions