MCPcopy
hub / github.com/gitless-vcs/gitless / status

Method status

gitless/core.py:765–780  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 9

mainFunction · 0.80
oei_fsFunction · 0.80
test_status_allMethod · 0.80
test_status_relativeMethod · 0.80
__assert_historyMethod · 0.80
test_conflicts_switchMethod · 0.80

Calls 1

_au_filesMethod · 0.95

Tested by 7

test_status_allMethod · 0.64
test_status_relativeMethod · 0.64
__assert_historyMethod · 0.64
test_conflicts_switchMethod · 0.64