{"thread":{"id":"827","subject":"[PATCH] diff.c: -B argument passing fix.","startedAt":"2005-06-04T06:04:07Z","lastAt":"2005-06-04T06:04:07Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"4527","messageId":"7v64wuk694.fsf@assigned-by-dhcp.cox.net","threadId":"827","inReplyTo":null,"subject":"[PATCH] diff.c: -B argument passing fix.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-06-04T06:04:07Z","receivedAt":"2005-06-04T06:04:07Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This fixes a bug that was preventing non-default parameter to -B\noption to be passed correctly; you could not give more than 50%\nbreak score.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n diff.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/diff.c b/diff.c\n--- a/diff.c\n+++ b/diff.c\n@@ -964,11 +964,11 @@ void diffcore_std(const char **paths,\n {\n \tif (paths && paths[0])\n \t\tdiffcore_pathspec(paths);\n-\tif (0 <= break_opt)\n+\tif (break_opt != -1)\n \t\tdiffcore_break(break_opt);\n \tif (detect_rename)\n \t\tdiffcore_rename(detect_rename, rename_score);\n-\tif (0 <= break_opt)\n+\tif (break_opt != -1)\n \t\tdiffcore_merge_broken();\n \tif (pickaxe)\n \t\tdiffcore_pickaxe(pickaxe, pickaxe_opts);\n------------\n\n"}]}