public function getDiff(string $commit1 = null, string $commit2 = null, string $path = null)
    {
        return Diff::create($this, $commit1, $commit2, $path);
    }
public function getDiff(string $commit1 = null, string $commit2 = null, string $path = null)
    {
        return Diff::create($this, $commit1, $commit2, $path);
    }
public function getDiff ( string $ commit1 = null , string $ commit2 = null , string $ path = null ) { return Diff :: create ( $ this , $ commit1 , $ commit2 , $ path ) ; }
Get a Diff object for a commit with its parent, by default the diff is between the current head and its parent

@param \GitElephant\Objects\Commit|string      $commit1 A TreeishInterface instance
@param \GitElephant\Objects\Commit|string|null $commit2 A TreeishInterface instance
@param null|string|NodeObject                  $path    The path to get the diff for or a Object instance

@throws \RuntimeException
@throws \InvalidArgumentException
@return Objects\Diff\Diff
Get a Diff object for a commit with its parent by default the diff is between the current head and its parent