Commits
- Commit:
d5c81d448ae4eec21053152e1c82c66eb11ca7a4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
verify object ID checksums while loose objects are being accessed
- Commit:
aea75d87862c3ab54d0b8c5e5e280e13efe8ec4a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_packidx_get_packfile_path() usable for callers who only have a path
- Commit:
b3d68e7f99c78cbcf672100fb14310e4b4f18482
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement 'gotadmin cleanup'
- Commit:
dbdddfee1482b50ca8c4a0be06e4fec6a59fb9f4
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
switch from SIMPLEQ to equivalent STAILQ macros
The singly-linked tail queue macros were added to OpenBSD 6.9 and
are more widely available on other systems.
ok stsp
- Commit:
a85917112992dbff7d0827f6cf65c6b5a3fb7bd2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
raw object size should not include the length of the object's header
This way, the size of a raw object is the same regardless of whether
the object was found in a loose object file or in a pack file.
- Commit:
9ca9aafb026269aef00e469133fb7d1e3c224952
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_object_id_queue_copy()
This will be required by a future 'gotadmin pack' command.
- Commit:
762d73f46b73795f4f1defc7cbadd0a3c3f17604
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_object_open_loose_fd() for library-internal use
- Commit:
509c99732c4da3e3b74c17d09aba5a38b701716f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_packidx_get_packfile_path() for library-internal use
- Commit:
7495ec13694c2696ee3fd6c7b4ec3e8f09e98f89
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix open file descriptor leak in error path of read_object_header_privsep()
- Commit:
59d1e4a0a9c19debc27746357d97084b59a76db8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement raw object data access; this will be required for packing
- Commit:
08578a35f60be8657db97b705f27a55ab61850c8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make close(2) failure checks consistent; check 'close() == -1' everywhere
ok millert, naddy
- Commit:
56b63ca4ab1049de6fa2d6910ce22c16e2b42a53
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere
ok millert, naddy
- Commit:
e8bfb8f3994fa8096bf56db895d969b4961f8b4b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix path existence check in got_object_tree_path_changed()
A symptom of this was a segfault in 'got blame distrib/miniroot/install.sub'
with the OpenBSD src.git from github, reported by jrick.
The problem was that the commit graph traversed one commit too far.
This could be more easily reproduced with 'got log':
got log -c 05f568 -P distrib/miniroot/install.sub
Which listed two commits instead of just the first one:
05f568ecc6aadefa1aff9064a29e798874a71409 <-- install.sub first created here
7c0d87f00e480cdf004324dad6f3e6f4418f8f42
"distrib/miniroot" exists in 7c0d87f00e480cdf004324... but not in the parent
of this commit. Ensure that we traverse the full path in tree1 even if an
intermediate tree2 cannot be opened. Instead of reporting success and a file
change if we can't traverse further through tree2, we now hit this failing
attempt to open the file 'install.sub' in tree object 180aa33df8d1 (tree1):
te1 = find_entry_by_name(tree1, seg, seglen);
if (te1 == NULL) {
err = got_error(GOT_ERR_NO_OBJ);
goto done;
}
fix tested and ok jrick
- Commit:
be659d10a8dd75e169fb7a246f54238dfc4386e8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix type of filesize output parameter of got_object_blob_dump_to_file()
- Commit:
c33ebc60244337a117933351d3565dd850925d06
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reallocate line_offsets array less often in got_object_blob_dump_to_file()
- Commit:
f1cbc3bc64f9e253d5c1239d55b3179e6fd215c4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
decouple line_offsets/nlines output params of got_object_blob_dump_to_file()
- Commit:
dbdd620944b55aa6cbe81fede1db6443521ac3ec
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle non-const basename in resolve_symlink()
ok millert
- Commit:
23c57b285fdcf9a8a0a5913ea096232038bf0ac3
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
Stop including <sys/syslimits.h> directly.
POSIX says the limits defined there are available from <limits.h>,
which almost all affected source files already included anyway.
ok millert stsp
- Commit:
81a12da58651e79380d81dea7020bf6af20bb28b
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
do not rely on <zlib.h> to pull in <unistd.h>
ok stsp
- Commit:
b66cd6f325e3fa7ddd17ff6dd41cf6e59d04ebf5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
display more context info in "no such entry found in tree" error messages
- Commit:
559d127ca5c66567e9ab8afe6f5ab9d866d7d735
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
errant tab found by tracey
- Commit:
aa0926921193099319156437044e75e4b7b702e1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
initialize output parameter of got_object_blob_read_to_str(); found by ofree
- Commit:
af57b12ab516c7fa5ecc8bd00db5637240411ed7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add symlink support to 'got cherrypick'; test non-conflict cases only for now
- Commit:
40dde666c0e7cae797b8652b1f4368e52c2c7b13
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for symlinks in the repository to 'got diff'
- Commit:
32596e16badddcbd6c032b6367d125df0e421f4b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix got_tree_entry_get_symlink_target() in case of multiple loop iterations