Implements the Git.Command behaviour for git diff-files.
Compares the files in the working tree against the index. Output is
requested with --raw -z and parsed into Git.DiffRawEntry structs.
Summary
Functions
Returns the argument list for git diff-files.
Parses the output of git diff-files --raw -z.
Types
Functions
Returns the argument list for git diff-files.
Examples
iex> Git.Commands.DiffFiles.args(%Git.Commands.DiffFiles{})
["diff-files", "--raw", "-z"]
@spec parse_output(String.t(), non_neg_integer()) :: {:ok, [Git.DiffRawEntry.t()]} | {:error, {String.t(), non_neg_integer()}}
Parses the output of git diff-files --raw -z.
On success (exit code 0), returns {:ok, [Git.DiffRawEntry.t()]}.
On failure, returns {:error, {stdout, exit_code}}.