Commit Briefs


Stefan Sperling

check for unlink(2) errors with the == -1 idiom, rather than != 0

ok op@


Stefan Sperling

avoid a pointless malloc/free in got_reflist_insert() in my previous fix

suggested by op@


Stefan Sperling

detect packed vs. on-disk reference collision when listing refs

ok op@


Florian Obser

Prevent use-after-free of packed_refs_path in error path.

Found by llvm's scan-build. OK stsp


Omar Polo

build with -Wwrite-strings

Throwing this into the mix for a while, we can always get rid of it again if it becomes annoying. No objections from stsp@



Stefan Sperling

wrap overlong lines


Stefan Sperling

add "e" (close-on-exec) flag to fopen(3) calls

suggested by millert ok thomas_adam


Stefan Sperling

fall back to comparison by name when refs have the same timestamp

This fixes an issue where some references were missing from lists of references sorted by timestamp.





Stefan Sperling

speed up 'got histedit -l' and 'got rebase -l'

Cache commit timestamps in struct got_reference in case we are sorting references by commit timestamp. This avoids opening and closing commits every time we compare two references with each other. ok thomas.adam


Christian Weisgerber

got_sha1_digest_to_str() writes to char *

ok stsp