Adding commit to file in C using CGO