Commit Briefs

e1f5d7cf67 Stefan Sperling

avoid malloc/free for duplicate check in got_pathlists_insert()

ok op@


c655fd934c Stefan Sperling

rename variables in got_path_strip() for clarity; ok op@


9d6cabd512 Omar Polo

got patch: allow to strip path components

Move some bits from the libexec helper to the main process so we know if the patch was generated by git or not and finally document the automatic stripping of a/ and b/ prefixes added by git-diff(1). ok stsp@


0f71f6196d Stefan Sperling

fix wrong path in a comment


8bd0cdad05 Stefan Sperling

add O_CLOEXEC (close-on-exec) flag to open(2) calls

suggested by millert ok thomas_adam



0c4004e3b4 Stefan Sperling

handle non-const dirname(3) in got_path_dirname()

ok naddy


0a9483d0af Stefan Sperling

handle non-const basename in got_path_basename()

ok millert


20ccae3945 Stefan Sperling

cope with directory entries returned from readdir(3) with type DT_UNKNOWN

Such directory entries need special handling to make our directory traversal code work on filesystems that do not support the d_type optimization. I found this problem because references stored in the refs/ directory were not shown by 'got log' and 'tog log' when a repository is mounted over NFS. helpful feedback + ok millert@




455de7fa2c Theo Buehler

Avoid out of bounds access if path is "/".

From Martin <openbsd () academicsolutions ! ch> with tweaks by me. ok stsp



718ef3e9e8 Stefan Sperling

simplify cleanup code paths in got_path_find_prog()


202329ae1b Stefan Sperling

fix some more occurrences of potential errno clobbering


466d3b326f Stefan Sperling

remove redundant strlen() calls from got_path_cmp()


f2b16adaed Stefan Sperling

cache path length in struct got_pathlist_entry


d572f5860a Stefan Sperling

eliminate strlen() calls during fileindex rb tree searches



f2ea84fab9 Stefan Sperling

make 'got update' accept mulitple path arguments


72ea6654e7 Stefan Sperling

add support for multiple path arguments to 'got status'


49aa539ae9 Stefan Sperling

remove got_path_normalize(); pointless and unused


2c7829a4ca Stefan Sperling

implement 'got init'


0868043076 Stefan Sperling

mention where code for got_path_find_prog() came from


0ee7065d8d Stefan Sperling

make 'got commit' look up EDITOR in PATH

The previous code only worked if EDITOR contained an absolute path.