Expose path argument in commits API endpoint.
Update inline documentation in commits API endpoint.