From: Junio C Hamano Date: Sun, 22 May 2005 19:35:16 GMT Subject: Re: [PATCH] The diff-raw format updates. Message-ID: <7vy8a7cavf.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7v64xbdq4y.fsf@assigned-by-dhcp.cox.net> >>>>> "JCH" == Junio C Hamano writes: >>>>> "LT" == Linus Torvalds writes: LT> The machine readable format has the same issue: it needs to be able to LT> distinguish between a "copy" (where the source remains) and a "rename" LT> (where the source is removed). JCH> Why? If the same path appears later as the left hand side then JCH> it is a copy otherwise it is a rename. Please see what JCH> diffcore-rename does when assigning to dp->xfrm_msg. JCH> What I've been trying hard so far was to keep diff_filepair not JCH> to be too specific to rename/copy. What I do not like about JCH> what is being proposed is that it would force me to introduce JCH> this "is this a copy or a rename" flag to that structure. Linus, another way of saying the above is this. Think about the example in test that munge COPYING file. What was recorded in the two trees as the result of sed $munge_1 COPYING.1 sed $munge_2