summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-27 10:08:57 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-27 10:08:57 -0800
commitb8840a72e25176681eaeea88d9a61aa4a02738cf (patch)
treea40f8df06d80e230cc2e42ece9c89c1a219bc523 /t/helper
parent63f74cfbcc608fc2b379680ba4f9181792996081 (diff)
parent3b0ebb7a8db6e5a1a11dcb2c1f549e4d6037185c (diff)
downloadgit-b8840a72e25176681eaeea88d9a61aa4a02738cf.tar.gz
Merge branch 'tb/drop-dir-iterator-follow-symlink-bit'
Remove leftover and unused code. * tb/drop-dir-iterator-follow-symlink-bit: t0066: drop setup of "dir5" dir-iterator: drop unused `DIR_ITERATOR_FOLLOW_SYMLINKS`
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-dir-iterator.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/helper/test-dir-iterator.c b/t/helper/test-dir-iterator.c
index 659b6bfa81..6b297bd753 100644
--- a/t/helper/test-dir-iterator.c
+++ b/t/helper/test-dir-iterator.c
@@ -15,7 +15,7 @@ static const char *error_name(int error_number)
/*
* usage:
- * tool-test dir-iterator [--follow-symlinks] [--pedantic] directory_path
+ * tool-test dir-iterator [--pedantic] directory_path
*/
int cmd__dir_iterator(int argc, const char **argv)
{
@@ -24,9 +24,7 @@ int cmd__dir_iterator(int argc, const char **argv)
int iter_status;
for (++argv, --argc; *argv && starts_with(*argv, "--"); ++argv, --argc) {
- if (strcmp(*argv, "--follow-symlinks") == 0)
- flags |= DIR_ITERATOR_FOLLOW_SYMLINKS;
- else if (strcmp(*argv, "--pedantic") == 0)
+ if (strcmp(*argv, "--pedantic") == 0)
flags |= DIR_ITERATOR_PEDANTIC;
else
die("invalid option '%s'", *argv);