6 years ago Stefan Sperling
add a conversion function from errno to got_error and use it
only define nitems() if it is not already defined
add copyright
initial import; current implementation only parses the .git/HEAD ref