]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/diff: fix botched update of usage comment
authorDenton Liu <liu.denton@gmail.com>
Tue, 23 Jun 2020 09:19:49 +0000 (05:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jun 2020 23:39:41 +0000 (16:39 -0700)
In the previous commit, an attempt was made to correct the "N=1, M=0"
case. However, the fix was botched and it introduced two half-correct
sections by mistake. Combine these half-correct sections into one fully
correct section.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c

index bdae4d6a58e0ed82e56e4c6faa6d7c46e2663e2c..cdfb58d04b82c845478fe69c730a4fc092b4cb42 100644 (file)
@@ -284,11 +284,8 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
         * N=1, M=0:
         *      tree vs files (diff-index)
         *
-        * N=1, M=0:
-        *      tree vs cache (diff-index --cached)
-        *
         * N=1, M=0, --cached:
-        *      tree vs files (diff-index)
+        *      tree vs cache (diff-index --cached)
         *
         * N=2, M=0:
         *      tree vs tree (diff-tree)