libgit2 for commits WORK-IN-PROGRESS

- check for uselibgit2 is missing
- not all errors reported to user
- not all objects are correctly freed

Signed-off-by: Sven Strickroth <email@cs-ware.de>