git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] diff.c: -B argument passing fix.

From
Junio C Hamano <junkio@cox.net>
Date
Jun 4, 2005, 06:04 UTC
Message-ID
<7v64wuk694.fsf@assigned-by-dhcp.cox.net>

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>
---
 diff.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/diff.c b/diff.c
--- a/diff.c
+++ b/diff.c
@@ -964,11 +964,11 @@ void diffcore_std(const char **paths,
 {
 	if (paths && paths[0])
 		diffcore_pathspec(paths);
-	if (0 <= break_opt)
+	if (break_opt != -1)
 		diffcore_break(break_opt);
 	if (detect_rename)
 		diffcore_rename(detect_rename, rename_score);
-	if (0 <= break_opt)
+	if (break_opt != -1)
 		diffcore_merge_broken();
 	if (pickaxe)
 		diffcore_pickaxe(pickaxe, pickaxe_opts);
------------
Message 1 of 1 in “diff.c: -B argument passing fix.”
  1. diff.c: -B argument passing fix.Junio C Hamano, Jun 4, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.