Skip to content

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

Description

@shlomiLan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions