Skip to content

git_status

  GIT_STATUS - return git working tree status

  [UPTODATE, CHANGES, UNTRACKED_PRESENT] = GIT_STATUS(DIRNAME)

  Examines whether a git working tree is up to date with its current branch

  UPTODATE is 1 if the working tree is up-to-date, and 0 if not.
  CHANGES is 1 if the working tree has changes to be committed, and 0 if not.
  UNTRACKED_PRESENT is 1 if there are untracked files present, and 0 if not.

  An error is generated if DIRNAME is not a GIT directory.

  See also: GIT_ISGITDIRECTORY