Repository navigation
Commit 0365ef9
committed
fix(discover): report a symlink skip through the ignored-files taxonomy
walk_dir_process_entry dropped a safe_stat() symlink/reparse-point rejection
with a bare return, unlike its two sibling skip paths (directory exclusion,
file skip_reason), which both call file_list_add_ignored. A file reachable
only through a symlinked directory vanished from the index with no trace in
not_indexed, skipped, or parse_partial, so a symlink-heavy subtree looked
identical to a complete index.
safe_stat now reports whether a rejection was specifically the
symlink/reparse-point check via an out-param, and walk_dir_process_entry
records it as an ignored file with reason "symlink" when so. The
count_only path and the traversal-following decision itself are untouched.
Fixes DeusData#1815
Signed-off-by: Amir Fathi <amirfathi.me@gmail.com>1 parent 010569f commit 0365ef9
2 files changed
Lines changed: 55 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
758 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
759 | 762 | | |
760 | 763 | | |
761 | 764 | | |
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
| 768 | + | |
765 | 769 | | |
766 | 770 | | |
767 | 771 | | |
| |||
771 | 775 | | |
772 | 776 | | |
773 | 777 | | |
| 778 | + | |
774 | 779 | | |
775 | 780 | | |
776 | 781 | | |
| |||
887 | 892 | | |
888 | 893 | | |
889 | 894 | | |
890 | | - | |
| 895 | + | |
| 896 | + | |
891 | 897 | | |
892 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
893 | 904 | | |
894 | 905 | | |
895 | 906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
912 | 952 | | |
913 | 953 | | |
914 | 954 | | |
| |||
1785 | 1825 | | |
1786 | 1826 | | |
1787 | 1827 | | |
| 1828 | + | |
1788 | 1829 | | |
1789 | 1830 | | |
1790 | 1831 | | |
| |||
0 commit comments