git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] builtin/diff: fix botched update of usage comment

From
Denton Liu <liu.denton@gmail.com>
Date
Jun 23, 2020, 09:19 UTC
Message-ID
<4a1e357c390690375374490cd5aa2431a2593b9d.1592903964.git.liu.denton@gmail.com>

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>
---
Notes:
    This patch is based on dl/diff-usage-comment-update.
 builtin/diff.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/builtin/diff.c b/builtin/diff.c
index bdae4d6a58..cdfb58d04b 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -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)
-- 
2.27.0.132.g321788e831
Message 1 of 1 in “builtin/diff: fix botched update of usage comment”
  1. builtin/diff: fix botched update of usage commentDenton Liu, Jun 23, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.