Commit d6c6016966cff46d874a8d85b38704a6ef2150e5

Russell Belfer 2013-11-04T15:45:31

Add giterr_detach API to get and clear error There are a number of cases where it is convenient to be able to fetch and "claim" the current error string, clearing the error. This is helpful when you need to call some code that may alter the error and you want to restore it later on and/or report it via some other mechanism.