Commit 7126102
committed
dir.c: use the cache_* macro to access the current index
These codepaths always start from the_index and use index_*
functions, but there is no reason to do so. Use the compatibility
cache_* macro to access the current in-core index like everybody
else.
While at it, fix typo in the comment for a function to check if a
path within a directory appears in the index.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent edca415 commit 7126102
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | 475 | | |
477 | 476 | | |
478 | | - | |
| 477 | + | |
479 | 478 | | |
480 | 479 | | |
481 | | - | |
| 480 | + | |
482 | 481 | | |
483 | | - | |
| 482 | + | |
484 | 483 | | |
485 | 484 | | |
486 | 485 | | |
| |||
924 | 923 | | |
925 | 924 | | |
926 | 925 | | |
927 | | - | |
| 926 | + | |
928 | 927 | | |
929 | 928 | | |
930 | 929 | | |
931 | 930 | | |
932 | 931 | | |
933 | | - | |
| 932 | + | |
934 | 933 | | |
935 | 934 | | |
936 | 935 | | |
| |||
0 commit comments