Branch data Line data Source code
1 : : #include "precizer.h"
2 : :
3 : : /**
4 : : * @brief Display include/ignore status for a directory path.
5 : : *
6 : : * Logs matches for --include/--ignore and triggers traversal banners
7 : : * before the first visible log line. Respects --quiet-ignored.
8 : : *
9 : : */
10 : 10104 : void directory_show(
11 : : const char *relative_path,
12 : : bool *first_iteration,
13 : : TraversalSummary *summary,
14 : : const bool ignore,
15 : : const bool include)
16 : : {
17 [ + + ]: 10104 : if(ignore == true)
18 : : {
19 : 116 : slog_show(EVERY|UNDECOR,true,first_iteration,summary,"ignore directory %s\n",relative_path);
20 : :
21 [ + + ]: 9988 : } else if(include == true){
22 : :
23 : 12 : slog_show(EVERY|UNDECOR,true,first_iteration,summary,"include directory %s\n",relative_path);
24 : : }
25 : 10104 : }
|