Skip to content

Commit 4c785c0

Browse files
dschogitster
authored andcommitted
rebase: replace incorrect logical negation by correct bitwise one
In bff014d (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d0ac38 commit 4c785c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/rebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ static int rebase_config(const char *var, const char *value, void *data)
653653
if (git_config_bool(var, value))
654654
opts->flags |= REBASE_DIFFSTAT;
655655
else
656-
opts->flags &= !REBASE_DIFFSTAT;
656+
opts->flags &= ~REBASE_DIFFSTAT;
657657
return 0;
658658
}
659659

0 commit comments

Comments
 (0)