Skip to content

Add way to get only topmost untracked folders/files #996

Description

@BeayemX

Let's say I have a new folder with three new files in it.

When I use git status it will show like this:

MyProject/New Folder/

But when I use GitPython's repo.untracked_files it will show like this:

MyProject/New Folder/file_a.txt
MyProject/New Folder/file_b.txt
MyProject/New Folder/file_c.txt

Is there a way to get the same result as the git status version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions