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

[PATCH v3 2/2] diff: whitespace cleanup

From
Sam James <sam@gentoo.org>
Date
Mar 11, 2024, 21:38 UTC
Message-ID
<20240311213928.1872437-3-sam@gentoo.org>
In-Reply-To
<20240311213928.1872437-1-sam@gentoo.org>

Fix whitespace after 'return' and add a newline after the if block to separate the strcasecmp logic from the rest.

Signed-off-by: Sam James <sam@gentoo.org>
---
 diff.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/diff.c b/diff.c
index a6433dec30..9a7425cae4 100644
--- a/diff.c
+++ b/diff.c
@@ -207,7 +207,8 @@ int git_config_rename(const char *var, const char *value)
 	if (!strcasecmp(value, "copies-harder"))
 		return DIFF_DETECT_COPY_HARDER;
 	if (!strcasecmp(value, "copies") || !strcasecmp(value, "copy"))
-		return  DIFF_DETECT_COPY;
+		return DIFF_DETECT_COPY;
+
 	return git_config_bool(var,value) ? DIFF_DETECT_RENAME : 0;
 }
 
-- 
2.44.0
Previous: Sam JamesNext: Sam James
Message 3 of 8 in “diff: copies-harder support”
  1. 0/2 diff: copies-harder supportSam James, Mar 11, 2024
  2. 1/2 diff: implement config.diff.renames=copies-harderSam James, Mar 11, 2024
  3. 2/2 diff: whitespace cleanupSam James, Mar 11, 2024
  4. Sam JamesApr 8, 2024
  5. Sam JamesApr 16, 2024
  6. Sam JamesMay 15, 2024
  7. Junio C HamanoMay 16, 2024
  8. Sam JamesMay 17, 2024

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.