package
0.22.0
Repository: https://github.com/wyarde/go-git-cmd-wrapper.git
Documentation: pkg.go.dev

# Functions

AbbrevRef A non-ambiguous short name of the objects name.
AbsoluteGitDir Like --git-dir, but its output is always the canonicalized absolute path.
After Parse the date string, and output the corresponding --max-age= parameter for git rev-list.
All Show all refs found in refs/.
Args Flags and parameters to be parsed.
Before Parse the date string, and output the corresponding --min-age= parameter for git rev-list.
Branches Show all branches, tags, or remote-tracking branches, respectively (i.e., refs found in refs/heads, refs/tags, or refs/remotes, respectively).
Default If there is no parameter given by the user, use <arg> instead.
Disambiguate Show every object whose name begins with the given prefix.
Exclude Do not include refs matching <glob-pattern> that the next --all, --branches, --tags, --remotes, or --glob would otherwise consider.
Flags Do not output non-flag parameters.
GitCommonDir Show $GIT_COMMON_DIR if defined, else $GIT_DIR.
GitDir Show $GIT_DIR if defined.
GitPath Resolve '$GIT_DIR/<path>' and takes other path relocation variables such as $GIT_OBJECT_DIRECTORY, $GIT_INDEX_FILE..
Glob Show all refs matching the shell glob pattern pattern.
IsBareRepository When the repository is bare print 'true', otherwise 'false'.
IsInsideGitDir When the current working directory is below the repository directory print 'true', otherwise 'false'.
IsInsideWorkTree When the current working directory is inside the work tree of the repository print 'true', otherwise 'false'.
KeepDashdash Only meaningful in --parseopt mode.
LocalEnvVars List the GIT_* environment variables that are local to the repository (e.g.
NoFlags Do not output flag parameters.
NoRevs Do not output flags and parameters meant for git rev-list command.
Not When showing object names, prefix them with ^ and strip ^ prefix from the object names that already have one.
Parseopt Use git rev-parse in option parsing mode (see PARSEOPT section below).
Prefix Behave as if git rev-parse was invoked from the <arg> subdirectory of the working tree.
Quiet Only meaningful in --verify mode.
Remotes Show all branches, tags, or remote-tracking branches, respectively (i.e., refs found in refs/heads, refs/tags, or refs/remotes, respectively).
ResolveGitDir Check if <path> is a valid repository or a gitfile that points at a valid repository, and print the location of the repository.
RevsOnly Do not output flags and parameters not meant for git rev-list command.
SharedIndexPath Show the path to the shared index file in split index mode, or empty if not in split-index mode.
Short Same as --verify but shortens the object name to a unique prefix with at least length characters.
ShowCdup When the command is invoked from a subdirectory, show the path of the top-level directory relative to the current directory (typically a sequence of '../', or an empty string).
ShowPrefix When the command is invoked from a subdirectory, show the path of the current directory relative to the top-level directory.
ShowSuperprojectWorkingTree Show the absolute path of the root of the superproject’s working tree (if exists) that uses the current repository as its submodule.
ShowToplevel Show the absolute path of the top-level directory.
Since Parse the date string, and output the corresponding --max-age= parameter for git rev-list.
Sq Usually the output is made one line per flag and parameter.
SqQuote Use git rev-parse in shell quoting mode (see SQ-QUOTE section below).
StopAtNonOption Only meaningful in --parseopt mode.
StuckLong Only meaningful in --parseopt mode.
Symbolic Usually the object names are output in SHA-1 form (with possible ^ prefix); this option makes them output in a form as close to the original input as possible.
SymbolicFullName This is similar to --symbolic, but it omits input that are not refs (i.e.
Tags Show all branches, tags, or remote-tracking branches, respectively (i.e., refs found in refs/heads, refs/tags, or refs/remotes, respectively).
Until Parse the date string, and output the corresponding --min-age= parameter for git rev-list.
Verify Verify that exactly one parameter is provided, and that it can be turned into a raw 20-byte SHA-1 that can be used to access the object database.