From: Johannes Sixt Date: Mon, 14 Sep 2009 06:44:37 GMT Subject: Re: rename tracking and file-name swapping Message-ID: <4AADE655.60503@viscovery.net> In-Reply-To: <1248088D-85CB-4335-AD8A-07DB5BAD1AAA@users.sf.net> Yuri D'Elia schrieb: > On 13 Sep 2009, at 20:14, Junio C Hamano wrote: >> By default, if the pathname that was present in the old version still >> appears in the new version, that path is not considered as a candiate >> for rename detection. Only "X used to be there but is gone" and "Y did >> not exist but appeared" are paired up and checked if they are similar. >> >> Give the command -B option, too, to break the filepair that does not >> disappear. > > That does the trick. I'm curious, is there any other use for -B besides > rename handling? Yes: It can make patches easier to read (just like -M and -C do) if a file was completely rewritten. For example, look at b9dfe51c with and without -B, and also note the "dissimilarity index" in the diff header. -- Hannes