From: Junio C Hamano Date: Sun, 22 May 2005 06:33:32 GMT Subject: Re: [PATCH] The diff-raw format updates. Message-ID: <7voeb3db2b.fsf@assigned-by-dhcp.cox.net> In-Reply-To: >>>>> "LT" == Linus Torvalds writes: LT> On Sat, 21 May 2005, Junio C Hamano wrote: >> >> Update the diff-raw format as Linus and I discussed, except that >> it does not use sequence of underscore '_' letters to express >> nonexistence. All '0' mode is used for that purpose instead. LT> Ok, it all looks very nice, but it looks like -C is still broken ;) Well it is not _still_ broken, but rather was introduced by the code reorganization to expose diff_rename_detect(). Sorry about the lack of testing. ------------ Add the code to set default minimum score back in. When the minimum score is specified as 0 (meaning "use default value"), set it to the default as we are told. Signed-off-by: Junio C Hamano --- $ jit-diff # - linus: [PATCH] The diff-raw format updates. # + (working tree) diff --git a/diffcore-rename.c b/diffcore-rename.c --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -235,6 +235,8 @@ void diff_detect_rename(int detect_renam int h, i, j; int num_create, num_src, dst_cnt, src_cnt; + if (!minimum_score) + minimum_score = DEFAULT_MINIMUM_SCORE; outq.queue = NULL; outq.nr = outq.alloc = 0;