Implements the Git.Command behaviour for git --version.
Reports the installed git version, useful for gating on capabilities.
Summary
Functions
Returns the argument list for git --version.
Parses the output of git --version into a Git.Version struct.
Types
Functions
Returns the argument list for git --version.
Examples
iex> Git.Commands.Version.args(%Git.Commands.Version{})
["--version"]
@spec parse_output(String.t(), non_neg_integer()) :: {:ok, Git.Version.t()} | {:error, {String.t(), non_neg_integer()}}
Parses the output of git --version into a Git.Version struct.
On a non-zero exit code, returns {:error, {stdout, exit_code}}.