Return a generator of file statuses (see FileStatus). Ignored and tracked unmodified files are not reported. File paths are always relative to the repo root.
(self)
| 763 | yield f_out[2:].strip() |
| 764 | |
| 765 | def status(self): |
| 766 | """Return a generator of file statuses (see FileStatus). |
| 767 | |
| 768 | Ignored and tracked unmodified files are not reported. |
| 769 | File paths are always relative to the repo root. |
| 770 | """ |
| 771 | for fp, git_s in self.gl_repo.git_repo.status().items(): |
| 772 | yield self.FileStatus(fp, *self._st_map[git_s]) |
| 773 | |
| 774 | # status doesn't report au files |
| 775 | au_files = self._au_files() |
| 776 | if au_files: |
| 777 | for fp in au_files: |
| 778 | exists_in_wd = os.path.exists(os.path.join(self.gl_repo.root, fp)) |
| 779 | yield self.FileStatus( |
| 780 | fp, GL_STATUS_UNTRACKED, True, exists_in_wd, True, False) |
| 781 | |
| 782 | def status_file(self, path): |
| 783 | """Return the status (see FileStatus) of the given path.""" |