Commits


add some helper functions to compute hashes This adds a set of functions to abstract over SHA1Init, SHA1Update, SHA1Final, their respective SHA256 variants and how to compare digests. Replace all the SHA1*() usage with the new APIs. It's a preparatory step for sha256 handling. ok stsp@


include sha2.h too where sha1.h is included In preparation for wide sha256 support; stsp@ agrees. Change done mechanically with find . -iname \*.[cy] -exec sam {} + X ,x/<sha1\.h>/i/\n#include <sha2.h>


add functions to extract object ids from fileindex entries ok stsp


zap double empty line


got: minor refactor of got_pathlist_free() API Accept flag parameter to optionally specify which pointers to free. This saves callers looping through the list to free pointers. ok + fix stsp@


remove trailing whitespace; patch by Josiah Frentsos


build with -Wmissing-prototypes ok stsp@


check return value of RB_INSERT; ok + memleak fix by op@


fix 'got status' reporting all directories on NFS mounts as unversioned Problem found and fix tested by Ted Bullock. ok millert, naddy


wrap overlong lines


add O_CLOEXEC (close-on-exec) to openat(2) calls suggested by millert ok thomas_adam


do not skip ignored directories in 'got status' if they contain tracked files Fixes regression introduced by commit 41f061b2f459318f3738f59d7676efccc4beb344 where tracked files inside an ignored directory were reported as missing.


skip ignored directories during 'got status' disk crawl


fix a bug where files skipped by 'got update' could not be updated again ok semarie@


fix bug where 'got up -c commit path' deleted unrelated files from work tree Problem reported by Timo Myyrä


add fd field to got_worktree, modify got_fileindex_entry_update to use fds These changes are intended to make got more compatible with FreeBSD's Capsicum. ok stsp


use modern POSIX timestamp fields in struct stat ok stsp


fix use of uninitialized variable in got_fileindex_entry_update()


set a staged file type and handle it separately from the on-disk file type


mark functions which are not exposed to other files as static


more fixes for setting/getting file index entry filetype and permissions


remove pointless error checking in got_fileindex_entry_filetype_set()


add getter/setter for staged file index entry filetype


handle on-disk file index entry filetypes properly


give bad symlinks a dedicated file type in the file index