Repository navigation
Commit f12a4dd
fix(server): blank .gitignore lines no longer make checkpoints drop new files
Capture asked `git check-ignore .` whether the workspace is ignored. Git turns
`.` into the workspace prefix with a trailing slash, and a blank CRLF or
spaces-only line in any ignore source becomes an empty pattern that matches it.
At the repository root capture then skipped untracked files; in a subdirectory
without tracked files it refused to capture at all.
The capture rev-parse now also reads the workspace prefix. The working-tree root
is never ignored, so it skips the probe; a subdirectory is probed by its
slash-less path, which real directory rules still match and the empty pattern
does not.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 84b970e commit f12a4dd
2 files changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
1038 | 1037 | | |
1039 | 1038 | | |
1040 | 1039 | | |
| |||
1087 | 1086 | | |
1088 | 1087 | | |
1089 | 1088 | | |
| 1089 | + | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
1096 | | - | |
1097 | 1096 | | |
1098 | 1097 | | |
1099 | 1098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| 860 | + | |
860 | 861 | | |
861 | 862 | | |
862 | 863 | | |
| |||
866 | 867 | | |
867 | 868 | | |
868 | 869 | | |
869 | | - | |
870 | | - | |
| 870 | + | |
| 871 | + | |
871 | 872 | | |
872 | 873 | | |
873 | 874 | | |
| 875 | + | |
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
877 | 879 | | |
878 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
879 | 887 | | |
880 | | - | |
| 888 | + | |
881 | 889 | | |
| 890 | + | |
882 | 891 | | |
883 | 892 | | |
884 | 893 | | |
| |||
915 | 924 | | |
916 | 925 | | |
917 | 926 | | |
918 | | - | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
919 | 930 | | |
920 | 931 | | |
921 | 932 | | |
| |||
1108 | 1119 | | |
1109 | 1120 | | |
1110 | 1121 | | |
1111 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1112 | 1128 | | |
1113 | 1129 | | |
1114 | 1130 | | |
| |||
0 commit comments