Line | Count | Source (jump to first uncovered line) |
1 | | #ifndef DIR_H |
2 | | #define DIR_H |
3 | | |
4 | | #include "hash.h" |
5 | | #include "hashmap.h" |
6 | | #include "pathspec.h" |
7 | | #include "statinfo.h" |
8 | | #include "strbuf.h" |
9 | | |
10 | | struct repository; |
11 | | |
12 | | /** |
13 | | * The directory listing API is used to enumerate paths in the work tree, |
14 | | * optionally taking `.git/info/exclude` and `.gitignore` files per directory |
15 | | * into account. |
16 | | */ |
17 | | |
18 | | /** |
19 | | * Calling sequence |
20 | | * ---------------- |
21 | | * |
22 | | * Note: The index may be checked for .gitignore files that are |
23 | | * CE_SKIP_WORKTREE marked. If you want to exclude files, make sure you have |
24 | | * loaded the index first. |
25 | | * |
26 | | * - Prepare `struct dir_struct dir` using `dir_init()` function. |
27 | | * |
28 | | * - To add single exclude pattern, call `add_pattern_list()` and then |
29 | | * `add_pattern()`. |
30 | | * |
31 | | * - To add patterns from a file (e.g. `.git/info/exclude`), call |
32 | | * `add_patterns_from_file()` , and/or set `dir.exclude_per_dir`. |
33 | | * |
34 | | * - A short-hand function `setup_standard_excludes()` can be used to set |
35 | | * up the standard set of exclude settings, instead of manually calling |
36 | | * the add_pattern*() family of functions. |
37 | | * |
38 | | * - Call `fill_directory()`. |
39 | | * |
40 | | * - Use `dir.entries[]` and `dir.ignored[]`. |
41 | | * |
42 | | * - Call `dir_clear()` when the contained elements are no longer in use. |
43 | | * |
44 | | */ |
45 | | |
46 | | struct repository; |
47 | | |
48 | | struct dir_entry { |
49 | | unsigned int len; |
50 | | char name[FLEX_ARRAY]; /* more */ |
51 | | }; |
52 | | |
53 | 0 | #define PATTERN_FLAG_NODIR 1 |
54 | 0 | #define PATTERN_FLAG_ENDSWITH 4 |
55 | 0 | #define PATTERN_FLAG_MUSTBEDIR 8 |
56 | 0 | #define PATTERN_FLAG_NEGATIVE 16 |
57 | | |
58 | | struct path_pattern { |
59 | | /* |
60 | | * This allows callers of last_matching_pattern() etc. |
61 | | * to determine the origin of the matching pattern. |
62 | | */ |
63 | | struct pattern_list *pl; |
64 | | |
65 | | int patternlen; |
66 | | int nowildcardlen; |
67 | | const char *base; |
68 | | int baselen; |
69 | | unsigned flags; /* PATTERN_FLAG_* */ |
70 | | |
71 | | /* |
72 | | * Counting starts from 1 for line numbers in ignore files, |
73 | | * and from -1 decrementing for patterns from CLI args. |
74 | | */ |
75 | | int srcpos; |
76 | | |
77 | | char pattern[FLEX_ARRAY]; |
78 | | }; |
79 | | |
80 | | /* used for hashmaps for cone patterns */ |
81 | | struct pattern_entry { |
82 | | struct hashmap_entry ent; |
83 | | char *pattern; |
84 | | size_t patternlen; |
85 | | }; |
86 | | |
87 | | /* |
88 | | * Each excludes file will be parsed into a fresh exclude_list which |
89 | | * is appended to the relevant exclude_list_group (either EXC_DIRS or |
90 | | * EXC_FILE). An exclude_list within the EXC_CMDL exclude_list_group |
91 | | * can also be used to represent the list of --exclude values passed |
92 | | * via CLI args. |
93 | | */ |
94 | | struct pattern_list { |
95 | | int nr; |
96 | | int alloc; |
97 | | |
98 | | /* origin of list, e.g. path to filename, or descriptive string */ |
99 | | const char *src; |
100 | | |
101 | | struct path_pattern **patterns; |
102 | | |
103 | | /* |
104 | | * While scanning the excludes, we attempt to match the patterns |
105 | | * with a more restricted set that allows us to use hashsets for |
106 | | * matching logic, which is faster than the linear lookup in the |
107 | | * excludes array above. If non-zero, that check succeeded. |
108 | | */ |
109 | | unsigned use_cone_patterns; |
110 | | unsigned full_cone; |
111 | | |
112 | | /* |
113 | | * Stores paths where everything starting with those paths |
114 | | * is included. |
115 | | */ |
116 | | struct hashmap recursive_hashmap; |
117 | | |
118 | | /* |
119 | | * Used to check single-level parents of blobs. |
120 | | */ |
121 | | struct hashmap parent_hashmap; |
122 | | }; |
123 | | |
124 | | /* |
125 | | * The contents of the per-directory exclude files are lazily read on |
126 | | * demand and then cached in memory, one per exclude_stack struct, in |
127 | | * order to avoid opening and parsing each one every time that |
128 | | * directory is traversed. |
129 | | */ |
130 | | struct exclude_stack { |
131 | | struct exclude_stack *prev; /* the struct exclude_stack for the parent directory */ |
132 | | int baselen; |
133 | | int exclude_ix; /* index of exclude_list within EXC_DIRS exclude_list_group */ |
134 | | struct untracked_cache_dir *ucd; |
135 | | }; |
136 | | |
137 | | struct exclude_list_group { |
138 | | int nr, alloc; |
139 | | struct pattern_list *pl; |
140 | | }; |
141 | | |
142 | | struct oid_stat { |
143 | | struct stat_data stat; |
144 | | struct object_id oid; |
145 | | int valid; |
146 | | }; |
147 | | |
148 | | /* |
149 | | * Untracked cache |
150 | | * |
151 | | * The following inputs are sufficient to determine what files in a |
152 | | * directory are excluded: |
153 | | * |
154 | | * - The list of files and directories of the directory in question |
155 | | * - The $GIT_DIR/index |
156 | | * - dir_struct flags |
157 | | * - The content of $GIT_DIR/info/exclude |
158 | | * - The content of core.excludesfile |
159 | | * - The content (or the lack) of .gitignore of all parent directories |
160 | | * from $GIT_WORK_TREE |
161 | | * - The check_only flag in read_directory_recursive (for |
162 | | * DIR_HIDE_EMPTY_DIRECTORIES) |
163 | | * |
164 | | * The first input can be checked using directory mtime. In many |
165 | | * filesystems, directory mtime (stat_data field) is updated when its |
166 | | * files or direct subdirs are added or removed. |
167 | | * |
168 | | * The second one can be hooked from cache_tree_invalidate_path(). |
169 | | * Whenever a file (or a submodule) is added or removed from a |
170 | | * directory, we invalidate that directory. |
171 | | * |
172 | | * The remaining inputs are easy, their SHA-1 could be used to verify |
173 | | * their contents (exclude_sha1[], info_exclude_sha1[] and |
174 | | * excludes_file_sha1[]) |
175 | | */ |
176 | | struct untracked_cache_dir { |
177 | | struct untracked_cache_dir **dirs; |
178 | | char **untracked; |
179 | | struct stat_data stat_data; |
180 | | unsigned int untracked_alloc, dirs_nr, dirs_alloc; |
181 | | unsigned int untracked_nr; |
182 | | unsigned int check_only : 1; |
183 | | /* all data except 'dirs' in this struct are good */ |
184 | | unsigned int valid : 1; |
185 | | unsigned int recurse : 1; |
186 | | /* null object ID means this directory does not have .gitignore */ |
187 | | struct object_id exclude_oid; |
188 | | char name[FLEX_ARRAY]; |
189 | | }; |
190 | | |
191 | | struct untracked_cache { |
192 | | struct oid_stat ss_info_exclude; |
193 | | struct oid_stat ss_excludes_file; |
194 | | const char *exclude_per_dir; |
195 | | char *exclude_per_dir_to_free; |
196 | | struct strbuf ident; |
197 | | /* |
198 | | * dir_struct#flags must match dir_flags or the untracked |
199 | | * cache is ignored. |
200 | | */ |
201 | | unsigned dir_flags; |
202 | | struct untracked_cache_dir *root; |
203 | | /* Statistics */ |
204 | | int dir_created; |
205 | | int gitignore_invalidated; |
206 | | int dir_invalidated; |
207 | | int dir_opened; |
208 | | /* fsmonitor invalidation data */ |
209 | | unsigned int use_fsmonitor : 1; |
210 | | }; |
211 | | |
212 | | /** |
213 | | * structure is used to pass directory traversal options to the library and to |
214 | | * record the paths discovered. A single `struct dir_struct` is used regardless |
215 | | * of whether or not the traversal recursively descends into subdirectories. |
216 | | */ |
217 | | struct dir_struct { |
218 | | |
219 | | /* bit-field of options */ |
220 | | enum { |
221 | | |
222 | | /** |
223 | | * Return just ignored files in `entries[]`, not untracked files. |
224 | | * This flag is mutually exclusive with `DIR_SHOW_IGNORED_TOO`. |
225 | | */ |
226 | | DIR_SHOW_IGNORED = 1<<0, |
227 | | |
228 | | /* Include a directory that is not tracked. */ |
229 | | DIR_SHOW_OTHER_DIRECTORIES = 1<<1, |
230 | | |
231 | | /* Do not include a directory that is not tracked and is empty. */ |
232 | | DIR_HIDE_EMPTY_DIRECTORIES = 1<<2, |
233 | | |
234 | | /** |
235 | | * If set, recurse into a directory that looks like a Git directory. |
236 | | * Otherwise it is shown as a directory. |
237 | | */ |
238 | | DIR_NO_GITLINKS = 1<<3, |
239 | | |
240 | | /** |
241 | | * Special mode for git-add. Return ignored files in `ignored[]` and |
242 | | * untracked files in `entries[]`. Only returns ignored files that match |
243 | | * pathspec exactly (no wildcards). Does not recurse into ignored |
244 | | * directories. |
245 | | */ |
246 | | DIR_COLLECT_IGNORED = 1<<4, |
247 | | |
248 | | /** |
249 | | * Similar to `DIR_SHOW_IGNORED`, but return ignored files in |
250 | | * `ignored[]` in addition to untracked files in `entries[]`. |
251 | | * This flag is mutually exclusive with `DIR_SHOW_IGNORED`. |
252 | | */ |
253 | | DIR_SHOW_IGNORED_TOO = 1<<5, |
254 | | |
255 | | DIR_COLLECT_KILLED_ONLY = 1<<6, |
256 | | |
257 | | /** |
258 | | * Only has meaning if `DIR_SHOW_IGNORED_TOO` is also set; if this is |
259 | | * set, the untracked contents of untracked directories are also |
260 | | * returned in `entries[]`. |
261 | | */ |
262 | | DIR_KEEP_UNTRACKED_CONTENTS = 1<<7, |
263 | | |
264 | | /** |
265 | | * Only has meaning if `DIR_SHOW_IGNORED_TOO` is also set; if this is |
266 | | * set, returns ignored files and directories that match an exclude |
267 | | * pattern. If a directory matches an exclude pattern, then the |
268 | | * directory is returned and the contained paths are not. A directory |
269 | | * that does not match an exclude pattern will not be returned even if |
270 | | * all of its contents are ignored. In this case, the contents are |
271 | | * returned as individual entries. |
272 | | * |
273 | | * If this is set, files and directories that explicitly match an ignore |
274 | | * pattern are reported. Implicitly ignored directories (directories that |
275 | | * do not match an ignore pattern, but whose contents are all ignored) |
276 | | * are not reported, instead all of the contents are reported. |
277 | | */ |
278 | | DIR_SHOW_IGNORED_TOO_MODE_MATCHING = 1<<8, |
279 | | |
280 | | DIR_SKIP_NESTED_GIT = 1<<9 |
281 | | } flags; |
282 | | |
283 | | /* The number of members in `entries[]` array. */ |
284 | | int nr; /* output only */ |
285 | | |
286 | | /* The number of members in `ignored[]` array. */ |
287 | | int ignored_nr; /* output only */ |
288 | | |
289 | | /* An array of `struct dir_entry`, each element of which describes a path. */ |
290 | | struct dir_entry **entries; /* output only */ |
291 | | |
292 | | /** |
293 | | * used for ignored paths with the `DIR_SHOW_IGNORED_TOO` and |
294 | | * `DIR_COLLECT_IGNORED` flags. |
295 | | */ |
296 | | struct dir_entry **ignored; /* output only */ |
297 | | |
298 | | /* Enable/update untracked file cache if set */ |
299 | | struct untracked_cache *untracked; |
300 | | |
301 | | /** |
302 | | * Deprecated: ls-files is the only allowed caller; all other callers |
303 | | * should leave this as NULL; it pre-dated the |
304 | | * setup_standard_excludes() mechanism that replaces this. |
305 | | * |
306 | | * This field tracks the name of the file to be read in each directory |
307 | | * for excluded files (typically `.gitignore`). |
308 | | */ |
309 | | const char *exclude_per_dir; |
310 | | |
311 | | struct dir_struct_internal { |
312 | | /* Keeps track of allocation of `entries[]` array.*/ |
313 | | int alloc; |
314 | | |
315 | | /* Keeps track of allocation of `ignored[]` array. */ |
316 | | int ignored_alloc; |
317 | | |
318 | | /* |
319 | | * We maintain three groups of exclude pattern lists: |
320 | | * |
321 | | * EXC_CMDL lists patterns explicitly given on the command line. |
322 | | * EXC_DIRS lists patterns obtained from per-directory ignore |
323 | | * files. |
324 | | * EXC_FILE lists patterns from fallback ignore files, e.g. |
325 | | * - .git/info/exclude |
326 | | * - core.excludesfile |
327 | | * |
328 | | * Each group contains multiple exclude lists, a single list |
329 | | * per source. |
330 | | */ |
331 | 0 | #define EXC_CMDL 0 |
332 | 0 | #define EXC_DIRS 1 |
333 | 0 | #define EXC_FILE 2 |
334 | | struct exclude_list_group exclude_list_group[3]; |
335 | | |
336 | | /* |
337 | | * Temporary variables which are used during loading of the |
338 | | * per-directory exclude lists. |
339 | | * |
340 | | * exclude_stack points to the top of the exclude_stack, and |
341 | | * basebuf contains the full path to the current |
342 | | * (sub)directory in the traversal. Exclude points to the |
343 | | * matching exclude struct if the directory is excluded. |
344 | | */ |
345 | | struct exclude_stack *exclude_stack; |
346 | | struct path_pattern *pattern; |
347 | | struct strbuf basebuf; |
348 | | |
349 | | /* Additional metadata related to 'untracked' */ |
350 | | struct oid_stat ss_info_exclude; |
351 | | struct oid_stat ss_excludes_file; |
352 | | unsigned unmanaged_exclude_files; |
353 | | |
354 | | /* Stats about the traversal */ |
355 | | unsigned visited_paths; |
356 | | unsigned visited_directories; |
357 | | } internal; |
358 | | }; |
359 | | |
360 | 0 | #define DIR_INIT { 0 } |
361 | | |
362 | | struct dirent *readdir_skip_dot_and_dotdot(DIR *dirp); |
363 | | |
364 | | /* |
365 | | * Get the d_type of a dirent. If the d_type is unknown, derive it from |
366 | | * stat.st_mode using the path to the dirent's containing directory (path) and |
367 | | * the name of the dirent itself. |
368 | | * |
369 | | * If 'follow_symlink' is 1, this function will attempt to follow DT_LNK types |
370 | | * using 'stat'. Links are *not* followed recursively, so a symlink pointing |
371 | | * to another symlink will still resolve to 'DT_LNK'. |
372 | | * |
373 | | * Note that 'path' is assumed to have a trailing slash. It is also modified |
374 | | * in-place during the execution of the function, but is then reverted to its |
375 | | * original value before returning. |
376 | | */ |
377 | | unsigned char get_dtype(struct dirent *e, struct strbuf *path, |
378 | | int follow_symlink); |
379 | | |
380 | | /*Count the number of slashes for string s*/ |
381 | | int count_slashes(const char *s); |
382 | | |
383 | | /* |
384 | | * The ordering of these constants is significant, with |
385 | | * higher-numbered match types signifying "closer" (i.e. more |
386 | | * specific) matches which will override lower-numbered match types |
387 | | * when populating the seen[] array. |
388 | | */ |
389 | 0 | #define MATCHED_RECURSIVELY 1 |
390 | 0 | #define MATCHED_RECURSIVELY_LEADING_PATHSPEC 2 |
391 | 0 | #define MATCHED_FNMATCH 3 |
392 | 0 | #define MATCHED_EXACTLY 4 |
393 | | int simple_length(const char *match); |
394 | | int no_wildcard(const char *string); |
395 | | char *common_prefix(const struct pathspec *pathspec); |
396 | | int report_path_error(const char *ps_matched, const struct pathspec *pathspec); |
397 | | int within_depth(const char *name, int namelen, int depth, int max_depth); |
398 | | |
399 | | int fill_directory(struct dir_struct *dir, |
400 | | struct index_state *istate, |
401 | | const struct pathspec *pathspec); |
402 | | int read_directory(struct dir_struct *, struct index_state *istate, |
403 | | const char *path, int len, |
404 | | const struct pathspec *pathspec); |
405 | | |
406 | | enum pattern_match_result { |
407 | | UNDECIDED = -1, |
408 | | NOT_MATCHED = 0, |
409 | | MATCHED = 1, |
410 | | MATCHED_RECURSIVE = 2, |
411 | | }; |
412 | | |
413 | | /* |
414 | | * Scan the list of patterns to determine if the ordered list |
415 | | * of patterns matches on 'pathname'. |
416 | | * |
417 | | * Return 1 for a match, 0 for not matched and -1 for undecided. |
418 | | */ |
419 | | enum pattern_match_result path_matches_pattern_list(const char *pathname, |
420 | | int pathlen, |
421 | | const char *basename, int *dtype, |
422 | | struct pattern_list *pl, |
423 | | struct index_state *istate); |
424 | | |
425 | | int init_sparse_checkout_patterns(struct index_state *state); |
426 | | |
427 | | int path_in_sparse_checkout(const char *path, |
428 | | struct index_state *istate); |
429 | | int path_in_cone_mode_sparse_checkout(const char *path, |
430 | | struct index_state *istate); |
431 | | |
432 | | struct dir_entry *dir_add_ignored(struct dir_struct *dir, |
433 | | struct index_state *istate, |
434 | | const char *pathname, int len); |
435 | | |
436 | | /* |
437 | | * these implement the matching logic for dir.c:excluded_from_list and |
438 | | * attr.c:path_matches() |
439 | | */ |
440 | | int match_basename(const char *, int, |
441 | | const char *, int, int, unsigned); |
442 | | int match_pathname(const char *, int, |
443 | | const char *, int, |
444 | | const char *, int, int); |
445 | | |
446 | | struct path_pattern *last_matching_pattern(struct dir_struct *dir, |
447 | | struct index_state *istate, |
448 | | const char *name, int *dtype); |
449 | | |
450 | | int is_excluded(struct dir_struct *dir, |
451 | | struct index_state *istate, |
452 | | const char *name, int *dtype); |
453 | | |
454 | | int pl_hashmap_cmp(const void *unused_cmp_data, |
455 | | const struct hashmap_entry *a, |
456 | | const struct hashmap_entry *b, |
457 | | const void *key); |
458 | | int hashmap_contains_parent(struct hashmap *map, |
459 | | const char *path, |
460 | | struct strbuf *buffer); |
461 | | struct pattern_list *add_pattern_list(struct dir_struct *dir, |
462 | | int group_type, const char *src); |
463 | | int add_patterns_from_file_to_list(const char *fname, const char *base, int baselen, |
464 | | struct pattern_list *pl, struct index_state *istate, |
465 | | unsigned flags); |
466 | | void add_patterns_from_file(struct dir_struct *, const char *fname); |
467 | | int add_patterns_from_blob_to_list(struct object_id *oid, |
468 | | const char *base, int baselen, |
469 | | struct pattern_list *pl); |
470 | | void parse_path_pattern(const char **string, int *patternlen, unsigned *flags, int *nowildcardlen); |
471 | | void add_pattern(const char *string, const char *base, |
472 | | int baselen, struct pattern_list *pl, int srcpos); |
473 | | void clear_pattern_list(struct pattern_list *pl); |
474 | | void dir_clear(struct dir_struct *dir); |
475 | | |
476 | | int repo_file_exists(struct repository *repo, const char *path); |
477 | | int file_exists(const char *); |
478 | | |
479 | | int is_inside_dir(const char *dir); |
480 | | int dir_inside_of(const char *subdir, const char *dir); |
481 | | |
482 | | static inline int is_dot_or_dotdot(const char *name) |
483 | 0 | { |
484 | 0 | return (name[0] == '.' && |
485 | 0 | (name[1] == '\0' || |
486 | 0 | (name[1] == '.' && name[2] == '\0'))); |
487 | 0 | } Unexecuted instantiation: add.c:is_dot_or_dotdot Unexecuted instantiation: am.c:is_dot_or_dotdot Unexecuted instantiation: check-ignore.c:is_dot_or_dotdot Unexecuted instantiation: checkout.c:is_dot_or_dotdot Unexecuted instantiation: clean.c:is_dot_or_dotdot Unexecuted instantiation: clone.c:is_dot_or_dotdot Unexecuted instantiation: commit.c:is_dot_or_dotdot Unexecuted instantiation: count-objects.c:is_dot_or_dotdot Unexecuted instantiation: difftool.c:is_dot_or_dotdot Unexecuted instantiation: fast-import.c:is_dot_or_dotdot Unexecuted instantiation: fsmonitor--daemon.c:is_dot_or_dotdot Unexecuted instantiation: grep.c:is_dot_or_dotdot Unexecuted instantiation: ls-files.c:is_dot_or_dotdot Unexecuted instantiation: merge-file.c:is_dot_or_dotdot Unexecuted instantiation: merge.c:is_dot_or_dotdot Unexecuted instantiation: mv.c:is_dot_or_dotdot Unexecuted instantiation: pack-objects.c:is_dot_or_dotdot Unexecuted instantiation: prune.c:is_dot_or_dotdot Unexecuted instantiation: pull.c:is_dot_or_dotdot Unexecuted instantiation: rebase.c:is_dot_or_dotdot Unexecuted instantiation: repack.c:is_dot_or_dotdot Unexecuted instantiation: reset.c:is_dot_or_dotdot Unexecuted instantiation: rm.c:is_dot_or_dotdot Unexecuted instantiation: show-branch.c:is_dot_or_dotdot Unexecuted instantiation: sparse-checkout.c:is_dot_or_dotdot Unexecuted instantiation: stash.c:is_dot_or_dotdot Unexecuted instantiation: submodule--helper.c:is_dot_or_dotdot Unexecuted instantiation: update-index.c:is_dot_or_dotdot Unexecuted instantiation: worktree.c:is_dot_or_dotdot Unexecuted instantiation: add-interactive.c:is_dot_or_dotdot Unexecuted instantiation: apply.c:is_dot_or_dotdot Unexecuted instantiation: attr.c:is_dot_or_dotdot Unexecuted instantiation: bisect.c:is_dot_or_dotdot Unexecuted instantiation: diagnose.c:is_dot_or_dotdot Unexecuted instantiation: diff-lib.c:is_dot_or_dotdot Unexecuted instantiation: diff-no-index.c:is_dot_or_dotdot Unexecuted instantiation: diff.c:is_dot_or_dotdot Unexecuted instantiation: dir-iterator.c:is_dot_or_dotdot Unexecuted instantiation: dir.c:is_dot_or_dotdot Unexecuted instantiation: entry.c:is_dot_or_dotdot Unexecuted instantiation: fsck.c:is_dot_or_dotdot Unexecuted instantiation: fsmonitor.c:is_dot_or_dotdot Unexecuted instantiation: gpg-interface.c:is_dot_or_dotdot Unexecuted instantiation: merge-ort.c:is_dot_or_dotdot Unexecuted instantiation: merge-recursive.c:is_dot_or_dotdot Unexecuted instantiation: midx.c:is_dot_or_dotdot Unexecuted instantiation: notes-merge.c:is_dot_or_dotdot Unexecuted instantiation: object-file.c:is_dot_or_dotdot Unexecuted instantiation: object-name.c:is_dot_or_dotdot Unexecuted instantiation: object.c:is_dot_or_dotdot Unexecuted instantiation: packfile.c:is_dot_or_dotdot Unexecuted instantiation: path.c:is_dot_or_dotdot Unexecuted instantiation: pathspec.c:is_dot_or_dotdot Unexecuted instantiation: preload-index.c:is_dot_or_dotdot Unexecuted instantiation: read-cache.c:is_dot_or_dotdot Unexecuted instantiation: rebase-interactive.c:is_dot_or_dotdot Unexecuted instantiation: files-backend.c:is_dot_or_dotdot Unexecuted instantiation: reftable-backend.c:is_dot_or_dotdot Unexecuted instantiation: packed-backend.c:is_dot_or_dotdot Unexecuted instantiation: remote.c:is_dot_or_dotdot Unexecuted instantiation: rerere.c:is_dot_or_dotdot Unexecuted instantiation: resolve-undo.c:is_dot_or_dotdot Unexecuted instantiation: sequencer.c:is_dot_or_dotdot Unexecuted instantiation: server-info.c:is_dot_or_dotdot Unexecuted instantiation: setup.c:is_dot_or_dotdot Unexecuted instantiation: sparse-index.c:is_dot_or_dotdot Unexecuted instantiation: submodule-config.c:is_dot_or_dotdot Unexecuted instantiation: submodule.c:is_dot_or_dotdot Unexecuted instantiation: tmp-objdir.c:is_dot_or_dotdot Unexecuted instantiation: tr2_sysenv.c:is_dot_or_dotdot Unexecuted instantiation: tree-walk.c:is_dot_or_dotdot Unexecuted instantiation: unpack-trees.c:is_dot_or_dotdot Unexecuted instantiation: wt-status.c:is_dot_or_dotdot Unexecuted instantiation: list-objects-filter.c:is_dot_or_dotdot Unexecuted instantiation: loose.c:is_dot_or_dotdot Unexecuted instantiation: error.c:is_dot_or_dotdot Unexecuted instantiation: iter.c:is_dot_or_dotdot Unexecuted instantiation: publicbasics.c:is_dot_or_dotdot Unexecuted instantiation: reader.c:is_dot_or_dotdot Unexecuted instantiation: record.c:is_dot_or_dotdot Unexecuted instantiation: stack.c:is_dot_or_dotdot Unexecuted instantiation: writer.c:is_dot_or_dotdot Unexecuted instantiation: basics.c:is_dot_or_dotdot Unexecuted instantiation: block.c:is_dot_or_dotdot Unexecuted instantiation: blocksource.c:is_dot_or_dotdot Unexecuted instantiation: merged.c:is_dot_or_dotdot Unexecuted instantiation: pq.c:is_dot_or_dotdot Unexecuted instantiation: tree.c:is_dot_or_dotdot |
488 | | |
489 | | int is_empty_dir(const char *dir); |
490 | | |
491 | | /* |
492 | | * Retrieve the "humanish" basename of the given Git URL. |
493 | | * |
494 | | * For example: |
495 | | * /path/to/repo.git => "repo" |
496 | | * host.xz:foo/.git => "foo" |
497 | | * http://example.com/user/bar.baz => "bar.baz" |
498 | | */ |
499 | | char *git_url_basename(const char *repo, int is_bundle, int is_bare); |
500 | | void strip_dir_trailing_slashes(char *dir); |
501 | | |
502 | | void setup_standard_excludes(struct dir_struct *dir); |
503 | | |
504 | | char *get_sparse_checkout_filename(void); |
505 | | int get_sparse_checkout_patterns(struct pattern_list *pl); |
506 | | |
507 | | /* Constants for remove_dir_recursively: */ |
508 | | |
509 | | /* |
510 | | * If a non-directory is found within path, stop and return an error. |
511 | | * (In this case some empty directories might already have been |
512 | | * removed.) |
513 | | */ |
514 | 0 | #define REMOVE_DIR_EMPTY_ONLY 01 |
515 | | |
516 | | /* |
517 | | * If any Git work trees are found within path, skip them without |
518 | | * considering it an error. |
519 | | */ |
520 | 0 | #define REMOVE_DIR_KEEP_NESTED_GIT 02 |
521 | | |
522 | | /* Remove the contents of path, but leave path itself. */ |
523 | 0 | #define REMOVE_DIR_KEEP_TOPLEVEL 04 |
524 | | |
525 | | /* Remove the_original_cwd too */ |
526 | 0 | #define REMOVE_DIR_PURGE_ORIGINAL_CWD 0x08 |
527 | | |
528 | | /* |
529 | | * Remove path and its contents, recursively. flags is a combination |
530 | | * of the above REMOVE_DIR_* constants. Return 0 on success. |
531 | | * |
532 | | * This function uses path as temporary scratch space, but restores it |
533 | | * before returning. |
534 | | */ |
535 | | int remove_dir_recursively(struct strbuf *path, int flag); |
536 | | |
537 | | /* |
538 | | * Tries to remove the path, along with leading empty directories so long as |
539 | | * those empty directories are not startup_info->original_cwd. Ignores |
540 | | * ENOENT. |
541 | | */ |
542 | | int remove_path(const char *path); |
543 | | |
544 | | int git_fspathcmp(const char *a, const char *b); |
545 | | int fspatheq(const char *a, const char *b); |
546 | | int git_fspathncmp(const char *a, const char *b, size_t count); |
547 | | unsigned int fspathhash(const char *str); |
548 | | |
549 | | /* |
550 | | * Reports whether paths collide. This may be because the paths differ only in |
551 | | * case on a case-sensitive filesystem, or that one path refers to a symlink |
552 | | * that collides with one of the parent directories of the other. |
553 | | */ |
554 | | int paths_collide(const char *a, const char *b); |
555 | | |
556 | | /* |
557 | | * The prefix part of pattern must not contains wildcards. |
558 | | */ |
559 | | struct pathspec_item; |
560 | | int git_fnmatch(const struct pathspec_item *item, |
561 | | const char *pattern, const char *string, |
562 | | int prefix); |
563 | | |
564 | | int submodule_path_match(struct index_state *istate, |
565 | | const struct pathspec *ps, |
566 | | const char *submodule_name, |
567 | | char *seen); |
568 | | |
569 | | static inline int dir_path_match(struct index_state *istate, |
570 | | const struct dir_entry *ent, |
571 | | const struct pathspec *pathspec, |
572 | | int prefix, char *seen) |
573 | 0 | { |
574 | 0 | int has_trailing_dir = ent->len && ent->name[ent->len - 1] == '/'; |
575 | 0 | int len = has_trailing_dir ? ent->len - 1 : ent->len; |
576 | 0 | return match_pathspec(istate, pathspec, ent->name, len, prefix, seen, |
577 | 0 | has_trailing_dir); |
578 | 0 | } Unexecuted instantiation: add.c:dir_path_match Unexecuted instantiation: am.c:dir_path_match Unexecuted instantiation: check-ignore.c:dir_path_match Unexecuted instantiation: checkout.c:dir_path_match Unexecuted instantiation: clean.c:dir_path_match Unexecuted instantiation: clone.c:dir_path_match Unexecuted instantiation: commit.c:dir_path_match Unexecuted instantiation: count-objects.c:dir_path_match Unexecuted instantiation: difftool.c:dir_path_match Unexecuted instantiation: fast-import.c:dir_path_match Unexecuted instantiation: fsmonitor--daemon.c:dir_path_match Unexecuted instantiation: grep.c:dir_path_match Unexecuted instantiation: ls-files.c:dir_path_match Unexecuted instantiation: merge-file.c:dir_path_match Unexecuted instantiation: merge.c:dir_path_match Unexecuted instantiation: mv.c:dir_path_match Unexecuted instantiation: pack-objects.c:dir_path_match Unexecuted instantiation: prune.c:dir_path_match Unexecuted instantiation: pull.c:dir_path_match Unexecuted instantiation: rebase.c:dir_path_match Unexecuted instantiation: repack.c:dir_path_match Unexecuted instantiation: reset.c:dir_path_match Unexecuted instantiation: rm.c:dir_path_match Unexecuted instantiation: show-branch.c:dir_path_match Unexecuted instantiation: sparse-checkout.c:dir_path_match Unexecuted instantiation: stash.c:dir_path_match Unexecuted instantiation: submodule--helper.c:dir_path_match Unexecuted instantiation: update-index.c:dir_path_match Unexecuted instantiation: worktree.c:dir_path_match Unexecuted instantiation: add-interactive.c:dir_path_match Unexecuted instantiation: apply.c:dir_path_match Unexecuted instantiation: attr.c:dir_path_match Unexecuted instantiation: bisect.c:dir_path_match Unexecuted instantiation: diagnose.c:dir_path_match Unexecuted instantiation: diff-lib.c:dir_path_match Unexecuted instantiation: diff-no-index.c:dir_path_match Unexecuted instantiation: diff.c:dir_path_match Unexecuted instantiation: dir-iterator.c:dir_path_match Unexecuted instantiation: dir.c:dir_path_match Unexecuted instantiation: entry.c:dir_path_match Unexecuted instantiation: fsck.c:dir_path_match Unexecuted instantiation: fsmonitor.c:dir_path_match Unexecuted instantiation: gpg-interface.c:dir_path_match Unexecuted instantiation: merge-ort.c:dir_path_match Unexecuted instantiation: merge-recursive.c:dir_path_match Unexecuted instantiation: midx.c:dir_path_match Unexecuted instantiation: notes-merge.c:dir_path_match Unexecuted instantiation: object-file.c:dir_path_match Unexecuted instantiation: object-name.c:dir_path_match Unexecuted instantiation: object.c:dir_path_match Unexecuted instantiation: packfile.c:dir_path_match Unexecuted instantiation: path.c:dir_path_match Unexecuted instantiation: pathspec.c:dir_path_match Unexecuted instantiation: preload-index.c:dir_path_match Unexecuted instantiation: read-cache.c:dir_path_match Unexecuted instantiation: rebase-interactive.c:dir_path_match Unexecuted instantiation: files-backend.c:dir_path_match Unexecuted instantiation: reftable-backend.c:dir_path_match Unexecuted instantiation: packed-backend.c:dir_path_match Unexecuted instantiation: remote.c:dir_path_match Unexecuted instantiation: rerere.c:dir_path_match Unexecuted instantiation: resolve-undo.c:dir_path_match Unexecuted instantiation: sequencer.c:dir_path_match Unexecuted instantiation: server-info.c:dir_path_match Unexecuted instantiation: setup.c:dir_path_match Unexecuted instantiation: sparse-index.c:dir_path_match Unexecuted instantiation: submodule-config.c:dir_path_match Unexecuted instantiation: submodule.c:dir_path_match Unexecuted instantiation: tmp-objdir.c:dir_path_match Unexecuted instantiation: tr2_sysenv.c:dir_path_match Unexecuted instantiation: tree-walk.c:dir_path_match Unexecuted instantiation: unpack-trees.c:dir_path_match Unexecuted instantiation: wt-status.c:dir_path_match Unexecuted instantiation: list-objects-filter.c:dir_path_match Unexecuted instantiation: loose.c:dir_path_match Unexecuted instantiation: error.c:dir_path_match Unexecuted instantiation: iter.c:dir_path_match Unexecuted instantiation: publicbasics.c:dir_path_match Unexecuted instantiation: reader.c:dir_path_match Unexecuted instantiation: record.c:dir_path_match Unexecuted instantiation: stack.c:dir_path_match Unexecuted instantiation: writer.c:dir_path_match Unexecuted instantiation: basics.c:dir_path_match Unexecuted instantiation: block.c:dir_path_match Unexecuted instantiation: blocksource.c:dir_path_match Unexecuted instantiation: merged.c:dir_path_match Unexecuted instantiation: pq.c:dir_path_match Unexecuted instantiation: tree.c:dir_path_match |
579 | | |
580 | | int cmp_dir_entry(const void *p1, const void *p2); |
581 | | int check_dir_entry_contains(const struct dir_entry *out, const struct dir_entry *in); |
582 | | |
583 | | void untracked_cache_invalidate_path(struct index_state *, const char *, int safe_path); |
584 | | /* |
585 | | * Invalidate the untracked-cache for this path, but first strip |
586 | | * off a trailing slash, if present. |
587 | | */ |
588 | | void untracked_cache_invalidate_trimmed_path(struct index_state *, |
589 | | const char *path, |
590 | | int safe_path); |
591 | | void untracked_cache_remove_from_index(struct index_state *, const char *); |
592 | | void untracked_cache_add_to_index(struct index_state *, const char *); |
593 | | |
594 | | void free_untracked_cache(struct untracked_cache *); |
595 | | struct untracked_cache *read_untracked_extension(const void *data, unsigned long sz); |
596 | | void write_untracked_extension(struct strbuf *out, struct untracked_cache *untracked); |
597 | | void add_untracked_cache(struct index_state *istate); |
598 | | void remove_untracked_cache(struct index_state *istate); |
599 | | |
600 | | /* |
601 | | * Connect a worktree to a git directory by creating (or overwriting) a |
602 | | * '.git' file containing the location of the git directory. In the git |
603 | | * directory set the core.worktree setting to indicate where the worktree is. |
604 | | * When `recurse_into_nested` is set, recurse into any nested submodules, |
605 | | * connecting them as well. |
606 | | */ |
607 | | void connect_work_tree_and_git_dir(const char *work_tree, |
608 | | const char *git_dir, |
609 | | int recurse_into_nested); |
610 | | void relocate_gitdir(const char *path, |
611 | | const char *old_git_dir, |
612 | | const char *new_git_dir); |
613 | | |
614 | | /** |
615 | | * The "enum path_matches_kind" determines how path_match_flags() will |
616 | | * behave. The flags come in sets, and one (and only one) must be |
617 | | * provided out of each "set": |
618 | | * |
619 | | * PATH_MATCH_NATIVE: |
620 | | * Path separator is is_dir_sep() |
621 | | * PATH_MATCH_XPLATFORM: |
622 | | * Path separator is is_xplatform_dir_sep() |
623 | | * |
624 | | * Do we use is_dir_sep() to check for a directory separator |
625 | | * (*_NATIVE), or do we always check for '/' or '\' (*_XPLATFORM). The |
626 | | * "*_NATIVE" version on Windows is the same as "*_XPLATFORM", |
627 | | * everywhere else "*_NATIVE" means "only /". |
628 | | * |
629 | | * PATH_MATCH_STARTS_WITH_DOT_SLASH: |
630 | | * Match a path starting with "./" |
631 | | * PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH: |
632 | | * Match a path starting with "../" |
633 | | * |
634 | | * The "/" in the above is adjusted based on the "*_NATIVE" and |
635 | | * "*_XPLATFORM" flags. |
636 | | */ |
637 | | enum path_match_flags { |
638 | | PATH_MATCH_NATIVE = 1 << 0, |
639 | | PATH_MATCH_XPLATFORM = 1 << 1, |
640 | | PATH_MATCH_STARTS_WITH_DOT_SLASH = 1 << 2, |
641 | | PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH = 1 << 3, |
642 | | }; |
643 | 0 | #define PATH_MATCH_KINDS_MASK (PATH_MATCH_STARTS_WITH_DOT_SLASH | \ |
644 | 0 | PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH) |
645 | 0 | #define PATH_MATCH_PLATFORM_MASK (PATH_MATCH_NATIVE | PATH_MATCH_XPLATFORM) |
646 | | |
647 | | /** |
648 | | * path_match_flags() checks if a given "path" matches a given "enum |
649 | | * path_match_flags" criteria. |
650 | | */ |
651 | | int path_match_flags(const char *const path, const enum path_match_flags f); |
652 | | |
653 | | /** |
654 | | * starts_with_dot_slash_native(): convenience wrapper for |
655 | | * path_match_flags() with PATH_MATCH_STARTS_WITH_DOT_SLASH and |
656 | | * PATH_MATCH_NATIVE. |
657 | | */ |
658 | | static inline int starts_with_dot_slash_native(const char *const path) |
659 | 0 | { |
660 | 0 | const enum path_match_flags what = PATH_MATCH_STARTS_WITH_DOT_SLASH; |
661 | |
|
662 | 0 | return path_match_flags(path, what | PATH_MATCH_NATIVE); |
663 | 0 | } Unexecuted instantiation: add.c:starts_with_dot_slash_native Unexecuted instantiation: am.c:starts_with_dot_slash_native Unexecuted instantiation: check-ignore.c:starts_with_dot_slash_native Unexecuted instantiation: checkout.c:starts_with_dot_slash_native Unexecuted instantiation: clean.c:starts_with_dot_slash_native Unexecuted instantiation: clone.c:starts_with_dot_slash_native Unexecuted instantiation: commit.c:starts_with_dot_slash_native Unexecuted instantiation: count-objects.c:starts_with_dot_slash_native Unexecuted instantiation: difftool.c:starts_with_dot_slash_native Unexecuted instantiation: fast-import.c:starts_with_dot_slash_native Unexecuted instantiation: fsmonitor--daemon.c:starts_with_dot_slash_native Unexecuted instantiation: grep.c:starts_with_dot_slash_native Unexecuted instantiation: ls-files.c:starts_with_dot_slash_native Unexecuted instantiation: merge-file.c:starts_with_dot_slash_native Unexecuted instantiation: merge.c:starts_with_dot_slash_native Unexecuted instantiation: mv.c:starts_with_dot_slash_native Unexecuted instantiation: pack-objects.c:starts_with_dot_slash_native Unexecuted instantiation: prune.c:starts_with_dot_slash_native Unexecuted instantiation: pull.c:starts_with_dot_slash_native Unexecuted instantiation: rebase.c:starts_with_dot_slash_native Unexecuted instantiation: repack.c:starts_with_dot_slash_native Unexecuted instantiation: reset.c:starts_with_dot_slash_native Unexecuted instantiation: rm.c:starts_with_dot_slash_native Unexecuted instantiation: show-branch.c:starts_with_dot_slash_native Unexecuted instantiation: sparse-checkout.c:starts_with_dot_slash_native Unexecuted instantiation: stash.c:starts_with_dot_slash_native Unexecuted instantiation: submodule--helper.c:starts_with_dot_slash_native Unexecuted instantiation: update-index.c:starts_with_dot_slash_native Unexecuted instantiation: worktree.c:starts_with_dot_slash_native Unexecuted instantiation: add-interactive.c:starts_with_dot_slash_native Unexecuted instantiation: apply.c:starts_with_dot_slash_native Unexecuted instantiation: attr.c:starts_with_dot_slash_native Unexecuted instantiation: bisect.c:starts_with_dot_slash_native Unexecuted instantiation: diagnose.c:starts_with_dot_slash_native Unexecuted instantiation: diff-lib.c:starts_with_dot_slash_native Unexecuted instantiation: diff-no-index.c:starts_with_dot_slash_native Unexecuted instantiation: diff.c:starts_with_dot_slash_native Unexecuted instantiation: dir-iterator.c:starts_with_dot_slash_native Unexecuted instantiation: dir.c:starts_with_dot_slash_native Unexecuted instantiation: entry.c:starts_with_dot_slash_native Unexecuted instantiation: fsck.c:starts_with_dot_slash_native Unexecuted instantiation: fsmonitor.c:starts_with_dot_slash_native Unexecuted instantiation: gpg-interface.c:starts_with_dot_slash_native Unexecuted instantiation: merge-ort.c:starts_with_dot_slash_native Unexecuted instantiation: merge-recursive.c:starts_with_dot_slash_native Unexecuted instantiation: midx.c:starts_with_dot_slash_native Unexecuted instantiation: notes-merge.c:starts_with_dot_slash_native Unexecuted instantiation: object-file.c:starts_with_dot_slash_native Unexecuted instantiation: object-name.c:starts_with_dot_slash_native Unexecuted instantiation: object.c:starts_with_dot_slash_native Unexecuted instantiation: packfile.c:starts_with_dot_slash_native Unexecuted instantiation: path.c:starts_with_dot_slash_native Unexecuted instantiation: pathspec.c:starts_with_dot_slash_native Unexecuted instantiation: preload-index.c:starts_with_dot_slash_native Unexecuted instantiation: read-cache.c:starts_with_dot_slash_native Unexecuted instantiation: rebase-interactive.c:starts_with_dot_slash_native Unexecuted instantiation: files-backend.c:starts_with_dot_slash_native Unexecuted instantiation: reftable-backend.c:starts_with_dot_slash_native Unexecuted instantiation: packed-backend.c:starts_with_dot_slash_native Unexecuted instantiation: remote.c:starts_with_dot_slash_native Unexecuted instantiation: rerere.c:starts_with_dot_slash_native Unexecuted instantiation: resolve-undo.c:starts_with_dot_slash_native Unexecuted instantiation: sequencer.c:starts_with_dot_slash_native Unexecuted instantiation: server-info.c:starts_with_dot_slash_native Unexecuted instantiation: setup.c:starts_with_dot_slash_native Unexecuted instantiation: sparse-index.c:starts_with_dot_slash_native Unexecuted instantiation: submodule-config.c:starts_with_dot_slash_native Unexecuted instantiation: submodule.c:starts_with_dot_slash_native Unexecuted instantiation: tmp-objdir.c:starts_with_dot_slash_native Unexecuted instantiation: tr2_sysenv.c:starts_with_dot_slash_native Unexecuted instantiation: tree-walk.c:starts_with_dot_slash_native Unexecuted instantiation: unpack-trees.c:starts_with_dot_slash_native Unexecuted instantiation: wt-status.c:starts_with_dot_slash_native Unexecuted instantiation: list-objects-filter.c:starts_with_dot_slash_native Unexecuted instantiation: loose.c:starts_with_dot_slash_native Unexecuted instantiation: error.c:starts_with_dot_slash_native Unexecuted instantiation: iter.c:starts_with_dot_slash_native Unexecuted instantiation: publicbasics.c:starts_with_dot_slash_native Unexecuted instantiation: reader.c:starts_with_dot_slash_native Unexecuted instantiation: record.c:starts_with_dot_slash_native Unexecuted instantiation: stack.c:starts_with_dot_slash_native Unexecuted instantiation: writer.c:starts_with_dot_slash_native Unexecuted instantiation: basics.c:starts_with_dot_slash_native Unexecuted instantiation: block.c:starts_with_dot_slash_native Unexecuted instantiation: blocksource.c:starts_with_dot_slash_native Unexecuted instantiation: merged.c:starts_with_dot_slash_native Unexecuted instantiation: pq.c:starts_with_dot_slash_native Unexecuted instantiation: tree.c:starts_with_dot_slash_native |
664 | | |
665 | | /** |
666 | | * starts_with_dot_slash_native(): convenience wrapper for |
667 | | * path_match_flags() with PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH and |
668 | | * PATH_MATCH_NATIVE. |
669 | | */ |
670 | | static inline int starts_with_dot_dot_slash_native(const char *const path) |
671 | 0 | { |
672 | 0 | const enum path_match_flags what = PATH_MATCH_STARTS_WITH_DOT_DOT_SLASH; |
673 | |
|
674 | 0 | return path_match_flags(path, what | PATH_MATCH_NATIVE); |
675 | 0 | } Unexecuted instantiation: add.c:starts_with_dot_dot_slash_native Unexecuted instantiation: am.c:starts_with_dot_dot_slash_native Unexecuted instantiation: check-ignore.c:starts_with_dot_dot_slash_native Unexecuted instantiation: checkout.c:starts_with_dot_dot_slash_native Unexecuted instantiation: clean.c:starts_with_dot_dot_slash_native Unexecuted instantiation: clone.c:starts_with_dot_dot_slash_native Unexecuted instantiation: commit.c:starts_with_dot_dot_slash_native Unexecuted instantiation: count-objects.c:starts_with_dot_dot_slash_native Unexecuted instantiation: difftool.c:starts_with_dot_dot_slash_native Unexecuted instantiation: fast-import.c:starts_with_dot_dot_slash_native Unexecuted instantiation: fsmonitor--daemon.c:starts_with_dot_dot_slash_native Unexecuted instantiation: grep.c:starts_with_dot_dot_slash_native Unexecuted instantiation: ls-files.c:starts_with_dot_dot_slash_native Unexecuted instantiation: merge-file.c:starts_with_dot_dot_slash_native Unexecuted instantiation: merge.c:starts_with_dot_dot_slash_native Unexecuted instantiation: mv.c:starts_with_dot_dot_slash_native Unexecuted instantiation: pack-objects.c:starts_with_dot_dot_slash_native Unexecuted instantiation: prune.c:starts_with_dot_dot_slash_native Unexecuted instantiation: pull.c:starts_with_dot_dot_slash_native Unexecuted instantiation: rebase.c:starts_with_dot_dot_slash_native Unexecuted instantiation: repack.c:starts_with_dot_dot_slash_native Unexecuted instantiation: reset.c:starts_with_dot_dot_slash_native Unexecuted instantiation: rm.c:starts_with_dot_dot_slash_native Unexecuted instantiation: show-branch.c:starts_with_dot_dot_slash_native Unexecuted instantiation: sparse-checkout.c:starts_with_dot_dot_slash_native Unexecuted instantiation: stash.c:starts_with_dot_dot_slash_native Unexecuted instantiation: submodule--helper.c:starts_with_dot_dot_slash_native Unexecuted instantiation: update-index.c:starts_with_dot_dot_slash_native Unexecuted instantiation: worktree.c:starts_with_dot_dot_slash_native Unexecuted instantiation: add-interactive.c:starts_with_dot_dot_slash_native Unexecuted instantiation: apply.c:starts_with_dot_dot_slash_native Unexecuted instantiation: attr.c:starts_with_dot_dot_slash_native Unexecuted instantiation: bisect.c:starts_with_dot_dot_slash_native Unexecuted instantiation: diagnose.c:starts_with_dot_dot_slash_native Unexecuted instantiation: diff-lib.c:starts_with_dot_dot_slash_native Unexecuted instantiation: diff-no-index.c:starts_with_dot_dot_slash_native Unexecuted instantiation: diff.c:starts_with_dot_dot_slash_native Unexecuted instantiation: dir-iterator.c:starts_with_dot_dot_slash_native Unexecuted instantiation: dir.c:starts_with_dot_dot_slash_native Unexecuted instantiation: entry.c:starts_with_dot_dot_slash_native Unexecuted instantiation: fsck.c:starts_with_dot_dot_slash_native Unexecuted instantiation: fsmonitor.c:starts_with_dot_dot_slash_native Unexecuted instantiation: gpg-interface.c:starts_with_dot_dot_slash_native Unexecuted instantiation: merge-ort.c:starts_with_dot_dot_slash_native Unexecuted instantiation: merge-recursive.c:starts_with_dot_dot_slash_native Unexecuted instantiation: midx.c:starts_with_dot_dot_slash_native Unexecuted instantiation: notes-merge.c:starts_with_dot_dot_slash_native Unexecuted instantiation: object-file.c:starts_with_dot_dot_slash_native Unexecuted instantiation: object-name.c:starts_with_dot_dot_slash_native Unexecuted instantiation: object.c:starts_with_dot_dot_slash_native Unexecuted instantiation: packfile.c:starts_with_dot_dot_slash_native Unexecuted instantiation: path.c:starts_with_dot_dot_slash_native Unexecuted instantiation: pathspec.c:starts_with_dot_dot_slash_native Unexecuted instantiation: preload-index.c:starts_with_dot_dot_slash_native Unexecuted instantiation: read-cache.c:starts_with_dot_dot_slash_native Unexecuted instantiation: rebase-interactive.c:starts_with_dot_dot_slash_native Unexecuted instantiation: files-backend.c:starts_with_dot_dot_slash_native Unexecuted instantiation: reftable-backend.c:starts_with_dot_dot_slash_native Unexecuted instantiation: packed-backend.c:starts_with_dot_dot_slash_native Unexecuted instantiation: remote.c:starts_with_dot_dot_slash_native Unexecuted instantiation: rerere.c:starts_with_dot_dot_slash_native Unexecuted instantiation: resolve-undo.c:starts_with_dot_dot_slash_native Unexecuted instantiation: sequencer.c:starts_with_dot_dot_slash_native Unexecuted instantiation: server-info.c:starts_with_dot_dot_slash_native Unexecuted instantiation: setup.c:starts_with_dot_dot_slash_native Unexecuted instantiation: sparse-index.c:starts_with_dot_dot_slash_native Unexecuted instantiation: submodule-config.c:starts_with_dot_dot_slash_native Unexecuted instantiation: submodule.c:starts_with_dot_dot_slash_native Unexecuted instantiation: tmp-objdir.c:starts_with_dot_dot_slash_native Unexecuted instantiation: tr2_sysenv.c:starts_with_dot_dot_slash_native Unexecuted instantiation: tree-walk.c:starts_with_dot_dot_slash_native Unexecuted instantiation: unpack-trees.c:starts_with_dot_dot_slash_native Unexecuted instantiation: wt-status.c:starts_with_dot_dot_slash_native Unexecuted instantiation: list-objects-filter.c:starts_with_dot_dot_slash_native Unexecuted instantiation: loose.c:starts_with_dot_dot_slash_native Unexecuted instantiation: error.c:starts_with_dot_dot_slash_native Unexecuted instantiation: iter.c:starts_with_dot_dot_slash_native Unexecuted instantiation: publicbasics.c:starts_with_dot_dot_slash_native Unexecuted instantiation: reader.c:starts_with_dot_dot_slash_native Unexecuted instantiation: record.c:starts_with_dot_dot_slash_native Unexecuted instantiation: stack.c:starts_with_dot_dot_slash_native Unexecuted instantiation: writer.c:starts_with_dot_dot_slash_native Unexecuted instantiation: basics.c:starts_with_dot_dot_slash_native Unexecuted instantiation: block.c:starts_with_dot_dot_slash_native Unexecuted instantiation: blocksource.c:starts_with_dot_dot_slash_native Unexecuted instantiation: merged.c:starts_with_dot_dot_slash_native Unexecuted instantiation: pq.c:starts_with_dot_dot_slash_native Unexecuted instantiation: tree.c:starts_with_dot_dot_slash_native |
676 | | |
677 | | #endif |