[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