Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork940
Closed
Labels
Description
I'm using GitPython for working with a git repository. To list the files added/deleted/changed I use the following code:
diff_files = []for parent in commit.parents: diff_files += [x.b_path for x in commit.diff(parent)]
However, the first commit doesn't have any parents, so this approach fails. Any ideas how might I do it in a different way?