libgit2

git_status_show_t

Version:

Select the files on which to report status.

  • GIT_STATUS_SHOW_INDEX_AND_WORKDIR is the default. This is the rough equivalent of git status --porcelain where each file will receive a callback indicating its status in the index and in the workdir.
  • GIT_STATUS_SHOW_INDEX_ONLY will only make callbacks for index side of status. The status of the index contents relative to the HEAD will be given.
  • GIT_STATUS_SHOW_WORKDIR_ONLY will only make callbacks for the workdir side of status, reporting the status of workdir content relative to the index.
  • GIT_STATUS_SHOW_INDEX_THEN_WORKDIR behaves like index-only followed by workdir-only, causing two callbacks to be issued per file (first index then workdir). This is slightly more efficient than making separate calls. This makes it easier to emulate the output of a plain git status.

Values

GIT_STATUS_SHOW_INDEX_AND_WORKDIR
0
GIT_STATUS_SHOW_INDEX_ONLY
1
GIT_STATUS_SHOW_WORKDIR_ONLY
2
GIT_STATUS_SHOW_INDEX_THEN_WORKDIR
3

Versions