Commits
- Commit:
948a2b91cd1124a44fa06cfac61f72ed076dcdf8
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: fix tests
- Commit:
097b408a53797a2665120e49ea0a908b8f0d8124
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
move privsep code from pack_create.c into new file pack_create_privsep.c
Needed by future gotd(8).
ok op@
- Commit:
dd73a53d967417134d842edfcf254d126dde3d3d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
handle unlink(2) errors for mergepath, tmppath, and apath in apply_patch()
ok op@
- Commit:
301ae139af015c305161aeb8e394094a512c6c04
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
introduce got_path_move_file(); based on code from lib/patch.c
ok op@
- Commit:
f96b13c8aa83acca1d0eea6e9b5bb27a2de82866
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
check for unlink(2) errors and don't try to unlink an already renamed file
ok op@
- Commit:
bcf5a4329785e99de746fcacadcf0530e5889ef3
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
check for unlink(2) errors in got_opentempfd()
ok op@
- Commit:
e6b88e161ad828106984b234e87b11f46df49a53
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
check for unlink(2) errors with the == -1 idiom, rather than != 0
ok op@
- Commit:
05fa71181ce0b8e193160790042225acf3a73b14
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
20a7d452fe7df073da75ff371d960625531490cd
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
ce3641f681bc648a11a3b5ba3653f1237ec2b1f3
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
a4fde4bc1b5aeb691045412b65cd19e4e1b536a3
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove accidentally committed debug assertion
- Commit:
3e8d36947e46d4fad49548c24b355444752307e9
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: handle sys/tree.h
Unfortunately, MacOS doesn't provide sys/tree.h -- so the compat check
for this must happen portably.
- Commit:
cb3c9f1cc3c0150fe2781c4bcd4bcae557696705
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: order lib files
For those tests which rely on compilation files, order them
alphabetically so it's easier when having to change the makefile
stanzas.
- Commit:
c59427c506d2ef9128e705a75134bb3a3b4d2848
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: check for sys/tree.h more fully
When checking for sys/tree.h on non-BSD systems, either it will be in
the standard include path (such as on MacOS), or it won't be found,
until libbsd is overlayed.
In cases where we want to find sys/tree.h via libbsd, perform a
AC_CHECK_DECL for a known #define in sys/tree.h -- which will still find
sys/tree.h in either location, or uses compat/tree.h in all other cases.
- Commit:
4e5e98e8510dc01d4848f809792357a7ea446baf
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: remove sha1.h include
This is searched for portably.
- Commit:
400c1baa797ea52d7f44e2d997bbf0341912a6f4
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
move got_gotconfig_read() into new file read_gotconfig_privsep.c
- Commit:
405ceee385e4537e9878f8e24a6c3be0640bcd5b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove unnecessary includes of got_lib_privsep.h
- Commit:
a777fdc0851febbdbbe01ccb788c7856c119c4f4
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
d348087d319f40c9237d272e23cd12fdec5bd123
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
54c227727ee63cc0f86859c76a0003c21ca3563a
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
move code which forks child processes into a subroutine, reducing copy-pasta
- Commit:
b61ceafcc71b10ab2295bf09b9ddb34a07666f73
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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:
c639c9205a410cf7f3535d3ae7f17d2483f2bdfa
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
the my_refs reflist in delete_missing_refs() must be freed on exit
- Commit:
0ce85e2d60aaf043824cd36200369a2787c84566
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
sync files from diff.git 674563ab136a2aa34dc4d93043d92235a2ae98ba
- Commit:
ee0cf61c1d9af6744b5be6de0c10ab5d5624c543
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
document global tog options earlier; suggested by op@
- Commit:
0a58e7222f591acd7479040f317f1e0e0e9d132e
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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@