Commit Briefs

0f148cb77a Stefan Sperling

revert c191ed664f6c437ebc3e0c859c53e48b445401f1

'got ref' should only work with naked ref names; implicitly putting things into 'refs/heads' is a job for something like a 'got branch' command.


6e472abb21 Stefan Sperling

fix a segfault in got_ref_open()


aedda007f3 Stefan Sperling

make open_ref() tolerate missing reference dirs and files



638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


f5c58ad153 Stefan Sperling

fix leftover lockfiles from parse_ref_file()


a875589a9d Stefan Sperling

fix locking of packed ref file in got_ref_open()


0885ce8fa7 Stefan Sperling

handle well-known refs more obviously in got_ref_open()


5b575c2578 Stefan Sperling

don't hide errors in got_ref_open()



656b1f76d3 joshua stein

while (1) -> for (;;)


230a42bdc6 joshua stein

got_error_from_errno -> got_error_prefix_errno

also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)


324d37e7c7 Stefan Sperling

make got path APIs available to library consumers


b249b824fb Stefan Sperling

add APIs to change references



598a8b9185 Stefan Sperling

implement support for packed refs in 'got ref -d'


6249107b89 Stefan Sperling

fix uninitialized variable in insert_ref()


80d5fc1f55 Stefan Sperling

use sizeof instead of SHA1_DIGEST_LENGTH in memcpy


6fdbf7b046 Stefan Sperling

better malloc size idiom in insert_ref()


c0a1c01633 Stefan Sperling

move assignment closer to check in parse_ref_file()


505287bea1 Stefan Sperling

properly handle duplicates when calling insert_ref()


27a1ed032f Stefan Sperling

don't leak 'new' in insert_ref()



7ab0422aff Stefan Sperling

better foarseln() error handling in open_packed_ref()


c980e47036 Stefan Sperling

plug memleak in alloc_ref()