Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

Re: [PATCH 1/2] Introduce rename factorization in diffcore.

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:45:37

On 10/31/08, Yann Dirson [off-list ref] wrote:
 -               else if (detect_rename == DIFF_DETECT_COPY) {
 -                       /*
 -                        * Increment the "rename_used" score by
 -                        * one, to indicate ourselves as a user.
 -                        */
 -                       p->one->rename_used++;
 -                       register_rename_src(p->one, p->score);
 +               else {
 +                       if (detect_rename == DIFF_DETECT_COPY) {
 +                               /*
 +                                * Increment the "rename_used" score by
 +                                * one, to indicate ourselves as a user.
 +                                */
 +                               p->one->rename_used++;
 +                               register_rename_src(p->one, p->score);
 +                       }
 +                       if (DIFF_OPT_TST(options, FACTORIZE_RENAMES)) {
 +                               /* similarly, rename factorization needs to
 +                                * see all files from second tree
 +                                */
 +                               //p->two->rename_used++; // FIXME: would we need that ?
 +                               locate_rename_dst(p->two, 1);
 +                       }
                }
        }
Hmm.. how about turn on a special flag for these rename_dst items?
Otherwise --group-renames and --find-copies-harder combination would
become hell: you have to compare all src with all dst. It could exceed
rename_limit, therefore no rename detection will be done.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help