|
d5c81d44
|
2021-07-08T11:03:29
|
|
verify object ID checksums while loose objects are being accessed
|
|
aea75d87
|
2021-07-06T07:57:00
|
|
make got_packidx_get_packfile_path() usable for callers who only have a path
|
|
b3d68e7f
|
2021-07-03T19:49:37
|
|
implement 'gotadmin cleanup'
|
|
dbdddfee
|
2021-06-23T20:48:35
|
|
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
|
|
a8591711
|
2021-06-18T13:52:26
|
|
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.
|
|
9ca9aafb
|
2021-06-18T13:36:51
|
|
introduce got_object_id_queue_copy()
This will be required by a future 'gotadmin pack' command.
|
|
762d73f4
|
2021-04-10T13:13:56
|
|
introduce got_object_open_loose_fd() for library-internal use
|
|
509c9973
|
2021-04-10T13:11:17
|
|
add got_packidx_get_packfile_path() for library-internal use
|
|
7495ec13
|
2021-04-04T14:24:39
|
|
fix open file descriptor leak in error path of read_object_header_privsep()
|
|
59d1e4a0
|
2021-03-10T22:49:22
|
|
implement raw object data access; this will be required for packing
|
|
08578a35
|
2021-01-22T11:05:05
|
|
make close(2) failure checks consistent; check 'close() == -1' everywhere
ok millert, naddy
|
|
56b63ca4
|
2021-01-22T11:04:47
|
|
make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere
ok millert, naddy
|
|
e8bfb8f3
|
2020-12-18T15:52:25
|
|
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
|
|
be659d10
|
2020-11-18T17:18:23
|
|
fix type of filesize output parameter of got_object_blob_dump_to_file()
|
|
c33ebc60
|
2020-11-18T17:05:28
|
|
reallocate line_offsets array less often in got_object_blob_dump_to_file()
|
|
f1cbc3bc
|
2020-11-18T13:48:23
|
|
decouple line_offsets/nlines output params of got_object_blob_dump_to_file()
|
|
dbdd6209
|
2020-10-19T23:14:59
|
|
handle non-const basename in resolve_symlink()
ok millert
|
|
23c57b28
|
2020-09-11T19:44:18
|
|
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
|
|
81a12da5
|
2020-09-09T19:35:32
|
|
do not rely on <zlib.h> to pull in <unistd.h>
ok stsp
|
|
b66cd6f3
|
2020-07-31T10:33:34
|
|
display more context info in "no such entry found in tree" error messages
|
|
559d127c
|
2020-07-23T15:07:52
|
|
errant tab found by tracey
|
|
aa092692
|
2020-07-23T14:22:40
|
|
initialize output parameter of got_object_blob_read_to_str(); found by ofree
|
|
af57b12a
|
2020-07-23T14:21:30
|
|
add symlink support to 'got cherrypick'; test non-conflict cases only for now
|
|
40dde666
|
2020-07-23T14:21:29
|
|
add support for symlinks in the repository to 'got diff'
|
|
32596e16
|
2020-07-23T14:21:28
|
|
fix got_tree_entry_get_symlink_target() in case of multiple loop iterations
|
|
f8f7c882
|
2020-07-23T14:21:28
|
|
fix buffer overflow in got_tree_entry_get_symlink_target()
|
|
e40622f4
|
2020-07-23T14:21:28
|
|
add got_object_tree_entry_is_symlink() and got_object_resolve_symlinks()
|
|
659dc16e
|
2020-07-23T14:21:28
|
|
skip the blob header in got_tree_entry_get_symlink_target()
|
|
8ba819a3
|
2020-07-23T14:21:27
|
|
let 'got checkout' create symlinks in a work tree
|
|
0d6c6ee3
|
2020-05-20T17:37:29
|
|
make 'got/tog tree' show symlink targets like 'ls -lF' does: link@ -> target
|
|
ac5f2b26
|
2020-05-05T15:26:11
|
|
normalize file mode bits to avoid false positive tree entry differences
|
|
82bde4e0
|
2020-03-18T16:10:31
|
|
remove unused header include
|
|
93658fb9
|
2020-03-18T16:10:30
|
|
Add initial support for network protocol. Ported from git9 by Ori Bernstein.
|
|
61a7d79f
|
2020-02-29T08:05:11
|
|
remove GOT_ERR_NOT_ABSPATH and fix existing users to deal with absolute paths
|
|
63f810e6
|
2020-02-29T07:54:55
|
|
when "bad path" errors occur, always show the path in question
|
|
992eb9d8
|
2020-02-07T17:02:17
|
|
spelling
|
|
845785d4
|
2020-02-02T17:08:02
|
|
typo
|
|
e1a68182
|
2020-01-07T17:49:17
|
|
fix pack index cache; don't open/close pack index files needlessly
|
|
ca6e02ac
|
2020-01-07T11:14:52
|
|
add support for first-parent history traversal to got-read-pack
|
|
56e0773d
|
2019-11-28T02:32:58
|
|
convert tree entries from SIMPLEQ to an array
|
|
5f25cc85
|
2019-11-26T22:43:12
|
|
remove obj->path_packfile which is unused nowadays; saves a few free() calls
|
|
6dd1ece6
|
2019-11-10T11:32:03
|
|
when an object id string is bad, include the bad string in the error message
|
|
ddc7b220
|
2019-09-08T18:29:14
|
|
do not leak ibuf in error paths of read_*_privsep()
|
|
aba9c984
|
2019-09-08T17:14:34
|
|
obtain repo format version and commit author name/email from .git/config
|
|
63c5ca5d
|
2019-08-24T20:56:15
|
|
detect and ignore Git submodules
|
|
01073a5d
|
2019-08-22T14:17:38
|
|
initial 'got cat' implementation
|
|
b02560ec
|
2019-08-19T09:54:52
|
|
fix number of lines accounted for during blame
|
|
f595d9bd
|
2019-08-14T22:51:13
|
|
fix line offset calculations in got_object_blob_dump_to_file()
|
|
5d844a1e
|
2019-08-13T15:41:46
|
|
don't attempt to parse Git's "leightweight" tags as real tag objects
|
|
8d2c5ea3
|
2019-08-13T10:49:23
|
|
don't leak memory for pack file path when opening objects
|
|
78695fb7
|
2019-08-12T12:38:08
|
|
fix blame with single-commit history and with files without \n
|
|
d24820bf
|
2019-08-11T21:19:14
|
|
add support for tag objects to 'got diff'
|
|
41d2888b
|
2019-08-11T20:03:36
|
|
move an assignment closer to error check in got_object_get_path()
|
|
e82b1d81
|
2019-07-27T19:12:22
|
|
switch back to searching packed objects first; it is indeed faster
|
|
34f480ff
|
2019-07-27T18:36:14
|
|
open local objects before searching packs; faster on large repos
|
|
e09a504c
|
2019-06-28T20:59:14
|
|
introduce support for abbreviated object IDs
|
|
2246482e
|
2019-06-25T12:27:42
|
|
make search actually work in 'tog blame'
|
|
6c4c42e0
|
2019-06-24T22:28:11
|
|
implement search for 'tog blame'
|
|
5e54fb30
|
2019-05-31T14:57:57
|
|
test and fix 'got revert' with a path in a sub-directory
Relax input path requirements of got_object_id_by_path() to
make things easier to callers. Allows the revert code to pass
a path from the file index in lieu of a repository path.
|
|
da506691
|
2019-05-22T13:00:28
|
|
set_max_datasize() should be a static function
|
|
b48e2ddb
|
2019-05-22T12:31:30
|
|
set datasize limit of got-read-pack helpers to maximum
|
|
638f9024
|
2019-05-13T12:40:57
|
|
rename got_error_prefix_errno() to got_error_from_errno()
|
|
230a42bd
|
2019-05-11T13:04:38
|
|
got_error_from_errno -> got_error_prefix_errno
also add got_error_prefix_errno2 and got_error_prefix_errno3 which
should hopefully all be merged into a single function with variadic
args (but can't alloc mem)
|
|
48b8b0eb
|
2019-05-11T10:40:57
|
|
error: introduce got_error_prefix_errno for better errno messages
|
|
324d37e7
|
2019-05-11T09:14:30
|
|
make got path APIs available to library consumers
|
|
8c4eabf2
|
2019-05-10T18:40:10
|
|
redo: fix tree_entry_dup error path
|
|
83a7ae6d
|
2019-05-10T18:38:59
|
|
revert previous
|
|
3ffe981f
|
2019-05-10T18:38:23
|
|
fix tree_entry_dup error path
|
|
ed175427
|
2019-05-07T19:53:44
|
|
more progress on generating new tree entries
|
|
90bdb554
|
2019-04-11T14:30:40
|
|
expose a static helper function as got_object_get_path()
|
|
a5b57ccf
|
2019-04-11T13:37:50
|
|
omit unused mode argument to open(2)
|
|
b7011c59
|
2019-04-06T06:05:44
|
|
fix double-free in error path of open_blob()
|
|
a129376b
|
2019-03-29T00:04:52
|
|
add initial implementation of 'got revert'
|
|
7baf5860
|
2019-03-19T12:37:32
|
|
avoid code duplication in error case of open_blob()
|
|
41496140
|
2019-02-21T15:17:36
|
|
prevent double-close(2) of file descriptors passed in imsg
|
|
3a6ce05a
|
2019-02-11T12:32:53
|
|
check for errors from close(2)
|
|
fb43ecf1
|
2019-02-11T11:59:09
|
|
check for errors from fclose()
|
|
cbe7f848
|
2019-02-11T11:35:55
|
|
check for fflush() errors
|
|
0bd18d37
|
2019-02-01T22:16:47
|
|
add potentially useful helpers for tag objects and refs
|
|
5d56da81
|
2019-01-13T17:15:53
|
|
happy new copyright year
|
|
ac544f8c
|
2019-01-13T15:58:39
|
|
pass smallish blobs directly via imsg buffer
|
|
de060dff
|
2018-12-24T17:39:23
|
|
handle zero-length files in open_blob() correctly
|
|
454a6b59
|
2018-12-24T17:32:40
|
|
fix fwrite() call in got_object_blob_dump_to_file()
|
|
b6752625
|
2018-12-24T17:28:46
|
|
fix an unchecked fwrite() call in got_object_blob_dump_to_file()
|
|
aea5f015
|
2018-12-24T14:29:50
|
|
drop dead code from got_privsep_send_obj_req()
|
|
9f2369b0
|
2018-12-24T14:25:18
|
|
make all the read_privsep functions local to object.c
|
|
ebc55e2d
|
2018-12-24T14:18:56
|
|
eliminate got_object_open() round-trip when opening blobs
|
|
268f7291
|
2018-12-24T11:18:58
|
|
eliminate got_object_open() round-trip when opening tags
|
|
13c729f7
|
2018-12-24T09:35:07
|
|
eliminate got_object_open() round-trip when opening trees
|
|
8524ff9a
|
2018-12-23T23:45:06
|
|
don't clean up twice in start_pack_privsep_child()
|
|
711fb6e8
|
2018-12-23T23:41:25
|
|
de-duplicate some code I copied around in object.c
|
|
a158c901
|
2018-12-23T23:35:37
|
|
make all the _packed_read_privsep() functions local to object.c
|
|
6e72e6a3
|
2018-12-23T23:21:35
|
|
there's no point in embedding the object header in commits
|
|
1785f84a
|
2018-12-23T23:15:42
|
|
eliminate got_object_open() round-trip when opening commits
|
|
4796fb13
|
2018-12-23T15:09:42
|
|
pass object ID to open_loose_object() instead of an object
|
|
15a94983
|
2018-12-23T14:48:47
|
|
remove struct got_object from public library API
|
|
6fcac457
|
2018-11-19T10:05:28
|
|
store number of lines in int instead of size_t
|
|
b7cd37e5
|
2018-11-19T00:05:48
|
|
eliminate strlen() in got_object_id_by_path()
|
|
3b7f9878
|
2018-11-19T00:04:25
|
|
eliminate strlen() call in got_object_tree_path_changed()
|
|
f4a881ce
|
2018-11-17T16:04:05
|
|
more support for tag objects; new code is not yet reachable
|