We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b722d9 commit afb9e30Copy full SHA for afb9e30
builtin/worktree.c
@@ -95,7 +95,7 @@ static void prune_worktrees(void)
95
if (!dir)
96
return;
97
while ((d = readdir(dir)) != NULL) {
98
- if (!strcmp(d->d_name, ".") || !strcmp(d->d_name, ".."))
+ if (is_dot_or_dotdot(d->d_name))
99
continue;
100
strbuf_reset(&reason);
101
if (!prune_worktree(d->d_name, &reason))
worktree.c
@@ -187,7 +187,7 @@ struct worktree **get_worktrees(void)
187
if (dir) {
188
189
struct worktree *linked = NULL;
190
191
192
193
if ((linked = get_linked_worktree(d->d_name))) {
0 commit comments