Skip to content

Commit

Permalink
rf(iter_gitstatus): reduce variable recycling to avoid confusing ty…
Browse files Browse the repository at this point in the history
…pe-checker

And people ...
  • Loading branch information
mih committed Jul 15, 2024
1 parent 5cb9636 commit 2aa7705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datalad_next/iter_collections/gitstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,17 +308,17 @@ def _yield_repo_items(
return

# lastly untracked files of this repo
for item in iter_gitworktree(
for untracked_item in iter_gitworktree(
path=path,
untracked=_untracked_mode_map[untracked],
link_target=False,
fp=False,
recursive='repository',
):
yield GitDiffItem(
name=item.name.as_posix(),
name=untracked_item.name.as_posix(),
status=GitDiffStatus.other,
gittype=item.gittype,
gittype=untracked_item.gittype,
)


Expand Down

0 comments on commit 2aa7705

Please sign in to comment.