File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,9 @@ static int estimate_similarity(struct diff_filespec *src,
153
153
* is a possible size - we really should have a flag to
154
154
* say whether the size is valid or not!)
155
155
*/
156
- if (!src -> cnt_data && diff_populate_filespec (src , 0 ))
156
+ if (!src -> cnt_data && diff_populate_filespec (src , 1 ))
157
157
return 0 ;
158
- if (!dst -> cnt_data && diff_populate_filespec (dst , 0 ))
158
+ if (!dst -> cnt_data && diff_populate_filespec (dst , 1 ))
159
159
return 0 ;
160
160
161
161
max_size = ((src -> size > dst -> size ) ? src -> size : dst -> size );
@@ -173,6 +173,11 @@ static int estimate_similarity(struct diff_filespec *src,
173
173
if (base_size * (MAX_SCORE - minimum_score ) < delta_size * MAX_SCORE )
174
174
return 0 ;
175
175
176
+ if (!src -> cnt_data && diff_populate_filespec (src , 0 ))
177
+ return 0 ;
178
+ if (!dst -> cnt_data && diff_populate_filespec (dst , 0 ))
179
+ return 0 ;
180
+
176
181
delta_limit = (unsigned long )
177
182
(base_size * (MAX_SCORE - minimum_score ) / MAX_SCORE );
178
183
if (diffcore_count_changes (src , dst ,
You can’t perform that action at this time.
0 commit comments