Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

How to list all files been tracked by git? #1273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shlomiLan opened this issue Jun 22, 2021 · 0 comments
Closed

How to list all files been tracked by git? #1273

shlomiLan opened this issue Jun 22, 2021 · 0 comments

Comments

@shlomiLan
Copy link

Hey all,

How do I get a list of all file? using git I can run

git ls-tree HEAD -r

how can I do it with this library? the best I could find is:

for file in repo.commit().tree.blobs:
    print(file.abspath)

but that only lists files in the top dictionary.

Thanks

@Byron Byron closed this as completed Jun 23, 2021
@gitpython-developers gitpython-developers locked and limited conversation to collaborators Jun 23, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

2 participants