Git has grown a set of internal APIs over time. This collection documents them.
Error reporting in git
merge API
parse-options API
Simple-IPC API
= Trace2 API