Avoid changing passed parameters

Signed-off-by: Michal Čihař <michal@cihar.com>
Support for getting commit details

Signed-off-by: Michal Čihař <michal@cihar.com>