Commits
- Commit:
713d6e1144f1c1a21dd9013eab0cdf75a6b01ab8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
let callers of got_pack_index() configure the rate limit of progress reporting
- Commit:
0136599f8fc0aa5d26834c46a9b9feb48d12c726
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move pack indexing code into new file lib/pack_index.c
Prepares for sharing code between got-index-pack and future gotd(8).
- Commit:
d294b1dcc034776a6df07345f9af90e594409062
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow got_object_parse_tree to reuse entries buffer allocations for speed
ok millert@
- Commit:
cae60ab8f2a261b006b3ccbded2d53dccbd6f300
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
let callers of got_pack_create() configure rate-limiting of progress reporting
Needed by future gotd(8), where progress reports will be sent to a network
socket, rather than a local terminal.
- Commit:
aabb25f81b1f8f68a03af422f9ae14ea5c3ae1fd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not crash if no delta cache is present while parsing deltas
- Commit:
301e83b3580ad6750144e2e36393b74e6fd6adcb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move privsep code from pack_create.c into new file pack_create_privsep.c
Needed by future gotd(8).
ok op@
- Commit:
a6072ec90f252faf1f1256591fb0d4623f4bc0c2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle unlink(2) errors for mergepath, tmppath, and apath in apply_patch()
ok op@
- Commit:
5bb4ff2b1627b8abf239cb4bc54375109b3e3a01
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_path_move_file(); based on code from lib/patch.c
ok op@
- Commit:
15c388a9fbe0ca9bd3fba71581e55dd5ad6d8c33
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for unlink(2) errors and don't try to unlink an already renamed file
ok op@
- Commit:
21017333f16f38ad9e8eb5d478bddf3397d4af05
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for unlink(2) errors in got_opentempfd()
ok op@
- Commit:
a06ca3f74892062294f3752ab15a9e5d7778a106
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for unlink(2) errors with the == -1 idiom, rather than != 0
ok op@
- Commit:
a32780aad7a4bc8539de9e7fd39b371f2fe8c346
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move got_opentempfd() call out of got_pack_create()
Future gotd(8) needs to run got_pack_create() in a chroot environment,
so we can no longer open new temporary files inside got_pack_create().
ok op@
- Commit:
894e4711ffca9e21b24e567a610d387bd0c31817
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_pack_create() write to a file descriptor instead of a stdio FILE
The old code required a seekable output file. This conflicts with requirements
of future gotd(8), which will write pack file data to network sockets.
ok op@
- Commit:
9cda65e55e3f6d565e83377712e1b81177639cda
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simplify the way 'got patch' opens a tempfile when reading from stdin
Also add basic test coverage for reading patches from stdin, while here.
ok op@
- Commit:
d2533287ff253bfb6fe08ddc0005ac3349fdf38c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove accidentally committed debug assertion
- Commit:
96fd6df18fbd10f0beed6fcc138d336bbb536a3e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move got_gotconfig_read() into new file read_gotconfig_privsep.c
- Commit:
affc4eed0efab2d385406813ccf33ac850b09c5c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unnecessary includes of got_lib_privsep.h
- Commit:
b9de8018be96c42d3421711a341c1fc8f6d7e0fb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move declaration of got_privsep_child out of got_lib_privsep.h
This declaration is the only reason why got_lib_privsep.h must be
included in order to use got_lib_repository.h. Moving this declaration
will allow for cleaning up unnecessary includes of got_lib_privsep.h.
- Commit:
6a800804535a75203abfb3708e68a661c1c89958
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move code for reading Git's config file into new file read_gitconfig_privsep.c
The end goal here is to remove the dependency of repository.c on privsep.c
during compilation.
- Commit:
1d9e43b0ca10bcb024cf1335f2a1e95647a50e9c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move code which forks child processes into a subroutine, reducing copy-pasta
- Commit:
8e359fa0dccf91ec3b06edc1ea17404f42a62862
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move functions which open objects into new file object_open_privsep.c
For the future, this will make it possible to provide alternative
implementations of functions now stored in object_open_privsep.c.
This will probably be needed by future gotd(8) which runs inside
a chroot(2) environment and without the "exec" pledge(2) promise,
making it impossible to run libexec helpers on the fly.
Details of this design are not yet settled, but moving functions
into a separate compilation unit won't hurt in any case.
- Commit:
0e51642e8ca7b6c1024426347999853df4cc21e7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
the my_refs reflist in delete_missing_refs() must be freed on exit
- Commit:
b16ee0699b6283b06cc57cca68c87d89a96630dc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sync files from diff.git 674563ab136a2aa34dc4d93043d92235a2ae98ba
- Commit:
3b95caf0b7910e22d23ee16cd50fab25471e1e20
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document global tog options earlier; suggested by op@
- Commit:
6a0a1bd407b4d06a6d003428daaa50cc2d92c6f9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync usage with reality
The -h and -V/--version flags must be given before the command; with
those flags the command is actually optional, but don't over-complicate
the usage string with these nitpicks.
ok/improvements stsp@