question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

data status: show untracked files in normal mode

See original GitHub issue

From https://github.com/iterative/dvc.org/pull/3812#discussion_r931002653:

Is it a performance optimization?

It no longer is, or will no longer be of performance concern. We didn’t have --untracked-files=normal support in dulwich so we had to use --untracked-files=all, so it’d be noisy and slow if you have too many untracked files.

But thanks to @dtrifiro’s great work in pygit2, the git.status() is about 30x faster. Plus, we now have --untracked-files=normal support in pygit2, which will be much faster even for a very large repository. So there’s no performance issue now if we decide to revisit. See iterative/scmrepo#118.

(I have been testing a repo with 150,000 untracked files from a dataset, and --untracked-files=normal takes ~20ms now)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
skshetrycommented, Sep 15, 2022

Maybe we can even get rid of the flag, enable --untracked-files=normal by default and change to --untracked-files=all when --granular is used.

1reaction
skshetrycommented, Sep 15, 2022

@dberenbaum, we have the support for this in upstream now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git-status Documentation - Git
Show untracked files. The mode parameter is used to specify the handling of untracked files. ... normal - Shows untracked files and directories....
Read more >
Get git not to show untracked files - Stack Overflow
The possible options are: · no - Show no untracked files · normal - Shows untracked files and directories · all - Also...
Read more >
Show untracked files with `git status` | michaelheap.com
Customise how `git` shows untracked folders and files in your repository using the `-u` flag, or the `showUntrackedFiles` config option.
Read more >
How to Properly Remove Untracked Files With Git - CloudBees
In this post, learn how to remove untracked files with Git. We'll begin with a brief explanation followed by examples and best practices....
Read more >
How to Remove Untracked Files in Git - Linode
They appear in the output of commands such as git status as untracked files. This makes it more difficult to tell what files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found