| add($file, $option) | Repository | Runs a git add call. |
| addStatus($flags) | aEntry | |
| addTag($tag, $message) | Repository | Add an annotated tag at the current position. |
| archive($ref, $folder, $options) | Repository | Export a ref's tree into a folder: tracked files only, no .git, nothing the working tree happens to carry. |
| assertValid() | Repository | |
| checkout($branch, $create) | Repository | Runs a git checkout call. |
| checkoutAndPull($branch) | Repository | Checkout a branch, then pull it when it is behind its upstream. |
| clearEntries() | Repository | |
| clearStatus($flags) | aEntry | |
| commit($message, $options) | Repository | Runs a git commit call. |
| createBranch($branch) | Repository | |
| debugName() | aEntry | |
| deleteBranch($branch, $force) | Repository | |
| Escape($arg) | Repository | Escape one argument for the shell. |
| execTrim($cmd, $throwOnExitCode, $exitCode) | Repository | |
| fetch($opts) | Repository | |
| getAhead() | Repository | |
| getBehind() | Repository | |
| getBranch() | Repository | The current branch, or -- on a detached HEAD, which has no branch -- the short commit hash. |
| getChangedEntries() | Repository | |
| getCommit($format) | Repository | |
| getCommitHash($short) | Repository | |
| getCommitVersion() | Repository | A version for the current commit, derived from the most recent tag. |
| getEntriesStatus() | Repository | |
| getEntriesStatusText($sep) | Repository | |
| getEntry($relativeFilename) | Repository | |
| getFetchRemotes() | Repository | |
| getFilename() | aEntry | |
| getModuleStatus() | Repository | |
| getModuleStatusText($sep) | Repository | |
| getOrigin() | aEntry | |
| getParent() | aEntry | |
| getPushRemotes() | Repository | |
| getRemoteName($url, $fetch) | Repository | The name of the remote serving $url. |
| getRemotes($direction) | Repository | The configured remotes. |
| getRevisionCount($branch1, $branch2) | Repository | How many commits $branch2 has that $branch1 does not. |
| getStatus() | aEntry | |
| getStatusText($sep) | aEntry | |
| getUpstream() | Repository | |
| getUpstreamOf($branch) | Repository | The remote-tracking branch a local branch follows, e.g. |
| hasChanges() | Repository | |
| hasDiff($filter, $files, $ref) | Repository | Check whether there are differences against $ref. |
| init() | Repository | |
| isClean() | Repository | |
| isDetached() | Repository | |
| isValidRemote($url) | Repository | |
| list() | Repository | Every tracked entry, recursing into the submodules. |
| listBranches($incLocal, $incRemote) | Repository | Runs a git branch call. |
| listModules() | Repository | The submodules declared by this repository. |
| listTags($pattern) | Repository | List the repository tags, most recent version first. |
| makeEntry($file, $status, $sub, $origin) | Repository | Build (or refresh) one entry of update, choosing File or Module from the <sub> field git reported. |
| merge($branch, $options) | Repository | Runs a git merge call. |
| mtime($filename, $options) | Repository | |
| pull($remote, $branch, $options) | Repository | Pull a specific branch from a remote. |
| push($remote, $branch, $options) | Repository | Push a specific branch (or all branches) to a remote. |
| pushMasterVersion($masterBranch, $where, $defaultVersion) | Repository | Merge the current branch into the master branch and tag the version. |
| realCommand($cmd) | Repository | |
| relativeFilename() | aEntry | The filename relative to the repository this entry belongs to. |
| remove($file, $option) | Repository | |
| resolve($ref) | Repository | Resolve any commit-ish (a branch, a tag, HEAD~2, ...) to its full hash. |
| restoreTime($filename, $options) | Repository | |
| setOrigin($origin) | aEntry | |
| setParent($parent) | aEntry | |
| setStatus($flags, $origin) | aEntry | Replace the status flags, and -- because git reports a rename's previous path alongside its status -- optionally the origin in the same call. |
| show($revision, $filename) | Repository | Show the content of a file from another branch/revision. |
| status() | Repository | |
| StatusFlags($flags) | aEntry | Read the two-character <XY> field of a git status --porcelain=2 entry. |
| StatusModuleFlags($flags) | aEntry | Read the four-character <sub> field of a git status --porcelain=2 entry (N... for a plain file, S<c><m><u> for a submodule). |
| StatusText($status, $sep) | aEntry | Convert git status constants to text. |
| tagVersion($message, $where, $inc, $default) | Repository | Tag the current commit with the next version after the most recent v* tag. |
| test($cmd) | Repository | |
| update() | Repository | Read git status into this repository's flags and entries. |