diff mbox series

[v3,2/2] diff: whitespace cleanup

Message ID 20240311213928.1872437-3-sam@gentoo.org (mailing list archive)
State New, archived
Headers show
Series diff: copies-harder support | expand

Commit Message

Sam James March 11, 2024, 9:38 p.m. UTC
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 mbox series

Patch

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;
 }