The method Commit.diff supports a paths parameter to limit diff to specified paths. However, it is more convenient sometimes to exclude files/directories. And since this feature is supported by the git command, it makes to support excluding files/directories in the method Commit.diff.
The method
Commit.diffsupports apathsparameter to limit diff to specified paths. However, it is more convenient sometimes to exclude files/directories. And since this feature is supported by thegitcommand, it makes to support excluding files/directories in the methodCommit.diff.