diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-02-14 12:57:17 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-14 12:57:17 -0800 |
commit | 63d37c3062e13cb2828edf63bc03cce1b6c41fd0 (patch) | |
tree | 058aa2fe3f357e626c3458a89443ea07fa0f5345 /builtin/blame.c | |
parent | Sync with 1.7.9.1 (diff) | |
parent | drop odd return value semantics from userdiff_config (diff) | |
download | tgif-63d37c3062e13cb2828edf63bc03cce1b6c41fd0.tar.xz |
Merge branch 'jk/userdiff-config-simplify'
* jk/userdiff-config-simplify:
drop odd return value semantics from userdiff_config
Diffstat (limited to 'builtin/blame.c')
-rw-r--r-- | builtin/blame.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 5a67c202f0..01956c8081 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -2050,14 +2050,8 @@ static int git_blame_config(const char *var, const char *value, void *cb) return 0; } - switch (userdiff_config(var, value)) { - case 0: - break; - case -1: + if (userdiff_config(var, value) < 0) return -1; - default: - return 0; - } return git_default_config(var, value, cb); } |