rebase: replace incorrect logical negation by correct bitwise one
In bff014dac7d9 (builtin rebase: support the `verbose` and `diffstat` options, 2018-09-04), we added a line that wanted to remove the `REBASE_DIFFSTAT` bit from the flags, but it used an incorrect negation. Found by Coverity. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
May 21, 2019 at 10:50 UTC
4c785c0edcd09222a812244db04c6fd725e512f3
1 file changed
+1
-1
builtin/rebase.c
+1
-1
@@ -653,7 +653,7 @@ static int rebase_config(const char *var, const char *value, void *data)
653
if (git_config_bool(var, value))
654
opts->flags |= REBASE_DIFFSTAT;
655
else
656
- opts->flags &= !REBASE_DIFFSTAT;
656
+ opts->flags &= ~REBASE_DIFFSTAT;
657
return 0;
658
}
659