libgit2/libgit2 — pull request #586 by rwilcox (2012-03-05 17:01:02+00:00)
Title: additional debugging information (reflecting OS level error) to git_filebuf_commit

This is a very small commit to reflect some of the underlaying OS level errors when git_filebuf_commit fails.

For example, if git_filebuf_commit fails on renaming the file, the function just returns GIT_ERROR. This makes debugging what actually went wrong really hard, at the library users level.

This patch adds error information (thanks to strerror) to the git error thrown from the function.