Re: [PATCH] The diff-raw format updates.
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 22, 2005, 06:33 UTC
- Message-ID
- <7voeb3db2b.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.58.0505212253350.2206@ppc970.osdl.org>
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> 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 <junkio@cox.net> --- $ 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;