diff --git a/builtin/grep.c b/builtin/grep.c
index 5c2ae94e5576f2e8af1f8509b789a67851db2598..dc6de83ab7c8178fc14d9e27679cb0b22f9caba3 100644 (file)
--- a/builtin/grep.c
+++ b/builtin/grep.c
struct grep_opt *opt = cb;
char *color = NULL;
struct grep_opt *opt = cb;
char *color = NULL;
- switch (userdiff_config(var, value)) {
- case 0: break;
- case -1: return -1;
- default: return 0;
- }
+ if (userdiff_config(var, value) < 0)
+ return -1;
if (!strcmp(var, "grep.extendedregexp")) {
if (git_config_bool(var, value))
if (!strcmp(var, "grep.extendedregexp")) {
if (git_config_bool(var, value))