← 返回首页
Add way to get only topmost untracked folders/files · Issue #996 · gitpython-developers/GitPython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

New issue
New issue

Description

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.