Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
#
# List all files that have ever been committed in this repository, in any
# commit in any branch.
import pygit2
import stat
def list_all_files(repo_path):
repo = pygit2.Repository(repo_path)