Commit dd02e72
refs: use strings directly in find_containing_dir()
Convert the parameter subdirname of search_for_subdir() to a
length-limted string and then simply pass the interesting slice of the
refname from find_containing_dir(), thereby avoiding to duplicate the
string.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b9146f5 commit dd02e72
1 file changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
| 356 | + | |
356 | 357 | | |
357 | | - | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | 386 | | |
388 | | - | |
389 | 387 | | |
| 388 | + | |
390 | 389 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 390 | + | |
395 | 391 | | |
396 | 392 | | |
397 | 393 | | |
398 | 394 | | |
399 | 395 | | |
400 | 396 | | |
401 | 397 | | |
402 | | - | |
403 | 398 | | |
404 | 399 | | |
405 | 400 | | |
| |||
0 commit comments