Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitPython - Getting Untracked Files

The GitPython tutorial mentions the attribute untracked_files as the way to get the array of untracked files of a particular git repository.

However referring to this attribute results in the following error.

AttributeError: 'Repo' object has no attribute 'untracked_files'

What is the method in GitPython to get the list of untracked files?

like image 670
chamilad Avatar asked Sep 18 '14 12:09

chamilad


Video Answer


1 Answers

The untracked_files property was added in GitPython v0.2 (see the change log).

You should check your installed version and upgrade if necessaary.

like image 178
isedev Avatar answered Sep 29 '22 16:09

isedev