summaryrefslogtreecommitdiff
path: root/t/t7063-status-untracked-cache.sh
diff options
context:
space:
mode:
authorLibravatar Elijah Newren <newren@gmail.com>2021-05-12 17:28:15 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-13 08:45:02 +0900
commit7fe1ffdafa56b8453a47a40b866d029f24a56d76 (patch)
tree178264f1a1349c42186beae4af727d21a4d66805 /t/t7063-status-untracked-cache.sh
parentdir: convert trace calls to trace2 equivalents (diff)
downloadtgif-7fe1ffdafa56b8453a47a40b866d029f24a56d76.tar.xz
dir: report number of visited directories and paths with trace2
Provide more statistics in trace2 output that include the number of directories and total paths visited by the directory traversal logic. Subsequent patches will take advantage of this to ensure we do not unnecessarily traverse into ignored directories. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7063-status-untracked-cache.sh')
-rwxr-xr-xt/t7063-status-untracked-cache.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh
index 9710d33b3c..a0c123b0a7 100755
--- a/t/t7063-status-untracked-cache.sh
+++ b/t/t7063-status-untracked-cache.sh
@@ -65,7 +65,8 @@ get_relevant_traces () {
INPUT_FILE=$1
OUTPUT_FILE=$2
grep data.*read_directo $INPUT_FILE |
- cut -d "|" -f 9 \
+ cut -d "|" -f 9 |
+ grep -v visited \
>"$OUTPUT_FILE"
}