Commits
- Commit:
d8bacb933720b8819f0c4e76b004775aa1885b9b
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
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@
- Commit:
e295ec6647ca8312b2e0b12524129ab572e08135
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
rm useless continue ok stsp
- Commit:
5bb4ff2b1627b8abf239cb4bc54375109b3e3a01
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_path_move_file(); based on code from lib/patch.c
ok op@
- Commit:
58e31a80da4f4a9e10eaea148672190f35107a47
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
336075a42a5ae0fa322db734c481d21998e82bb8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
build with -Wmissing-prototypes
ok stsp@
- Commit:
e1f5d7cf67ae80171a7360796fb87c328f22cff3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid malloc/free for duplicate check in got_pathlists_insert()
ok op@
- Commit:
c655fd934cee923423377833208cc041a67e4217
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename variables in got_path_strip() for clarity; ok op@
- Commit:
9d6cabd51222f7506db617ee8a7b282823dde999
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
0f71f6196dbf9f3afd34524586b8bfdb2d1eaccd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix wrong path in a comment
- Commit:
8bd0cdad05519cbb08d8d11223bdde0472678150
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add O_CLOEXEC (close-on-exec) flag to open(2) calls
suggested by millert
ok thomas_adam
- Commit:
41ad2652808e8c045a2a82b97bb309e35fde2887
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused function got_path_get_absolute(); realpath(3) is usually better
- Commit:
0c4004e3b4aebeca63f9345737174e8fbe69abb7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle non-const dirname(3) in got_path_dirname()
ok naddy
- Commit:
0a9483d0af324e2f67bb3af427577a35fb7ed401
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle non-const basename in got_path_basename()
ok millert
- Commit:
20ccae39452cdf85f57023c8a7f029b0545adfa7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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@
- Commit:
b8b3f2090ed097020d494dbf50d92a34c669707d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_path_is_root_dir() deal with an arbitrary amount of leading slashes
- Commit:
63f810e6fee43e699585195a24eebdb53a99a4f4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
when "bad path" errors occur, always show the path in question
- Commit:
455de7fa2c4ca7bb8c24c144e14c235f8d757503
- From:
- Theo Buehler <tb@openbsd.org>
- Date:
Avoid out of bounds access if path is "/".
From Martin <openbsd () academicsolutions ! ch> with tweaks by me.
ok stsp
- Commit:
5cade90168b43ba473102fcb27dd1fd4d85fcdc9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix error return in got_path_find_prog() (patch by Steven McDonald)
- Commit:
718ef3e9e896770be288214c9e03de887cb683cd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simplify cleanup code paths in got_path_find_prog()
- Commit:
202329ae1b4393a9093c61915de94a5a9a51555a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix some more occurrences of potential errno clobbering
- Commit:
466d3b326f73598d70e55b9cf69805cb3026be55
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove redundant strlen() calls from got_path_cmp()
- Commit:
f2b16adaedf4891924ea61e7f357b02c6cf42bdf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
cache path length in struct got_pathlist_entry
- Commit:
d572f5860a456fe9ab48d8444dd4cbec28fcae6c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
eliminate strlen() calls during fileindex rb tree searches
- Commit:
adc19d556533254f7f3fe8101c25f9de1ca46331
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove pointless output parameter from got_pathlist_append()
- Commit:
f2ea84fab96c77d352fe460a37f2722beb6225d7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got update' accept mulitple path arguments