class Git::Commands::Diff

Implements the ‘git diff` command

Compares commits, the index, and the working tree.

@example Typical usage

diff = Git::Commands::Diff.new(execution_context)
diff.call(numstat: true, shortstat: true, src_prefix: 'a/', dst_prefix: 'b/')
diff.call(patch: true, no_index: true, path: ['/path/a', '/path/b'])
diff.call(patch: true, cached: true)
diff.call('abc123', 'def456', raw: true, numstat: true, shortstat: true)

@note ‘arguments` block audited against

https://git-scm.com/docs/git-diff/2.53.0

@see git-scm.com/docs/git-diff git-diff

@see Git::Commands

@api private