We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37f382a + a98f7fb commit a20e20eCopy full SHA for a20e20e
read-cache.c
@@ -1171,20 +1171,6 @@ static int has_dir_name(struct index_state *istate,
1171
return retval;
1172
}
1173
1174
- if (istate->cache_nr > 0 &&
1175
- ce_namelen(istate->cache[istate->cache_nr - 1]) > len) {
1176
- /*
1177
- * The directory prefix lines up with part of
1178
- * a longer file or directory name, but sorts
1179
- * after it, so this sub-directory cannot
1180
- * collide with a file.
1181
- *
1182
- * last: xxx/yy-file (because '-' sorts before '/')
1183
- * this: xxx/yy/abc
1184
- */
1185
- return retval;
1186
- }
1187
-
1188
/*
1189
* This is a possible collision. Fall through and
1190
* let the regular search code handle it.
0 commit comments