Skip to content

Commit 49d9e85

Browse files
Junio C HamanoLinus Torvalds
authored andcommitted
[PATCH] diff.c: -B argument passing fix.
This fixes a bug that was preventing non-default parameter to -B option to be passed correctly; you could not give more than 50% break score. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 0601e13 commit 49d9e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,11 +964,11 @@ void diffcore_std(const char **paths,
964964
{
965965
if (paths && paths[0])
966966
diffcore_pathspec(paths);
967-
if (0 <= break_opt)
967+
if (break_opt != -1)
968968
diffcore_break(break_opt);
969969
if (detect_rename)
970970
diffcore_rename(detect_rename, rename_score);
971-
if (0 <= break_opt)
971+
if (break_opt != -1)
972972
diffcore_merge_broken();
973973
if (pickaxe)
974974
diffcore_pickaxe(pickaxe, pickaxe_opts);

0 commit comments

Comments
 (0)