Commits
- Commit:
7210b7156b950b1b2c0055beb00fab4b3e442317
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make got_commit_graph_iter_next use caller-provided storage for the id
and adjust the callers. discussed with and ok stsp@
- Commit:
d68b973725ce0a2c7b1f5094448a444d4f2effdc
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
plug leak in the commit graph iterator
We fail to release the memory for the nodes. To fix it however, we some
consumer of the commit graph iterator need to be corrected: the returned
pointer is safe to be used only up until the next iter_next call;
save a copy it if it's needed afterwards too.
ok stsp@
- Commit:
99c6f580a3ccd12811e726f6773d468eb0952427
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
replace an indirect call to idset_add(), via add_node(), with a direct call
Avoids leaking the node structure returned from add_node().
ok op@
- Commit:
07894e99b111edc91d20565e0982344b52b32095
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
free commit on error path
while here drop the ternary too: if add_node succeeds `new_node' is
non-NULL. ok stsp@
- Commit:
f3933be66b2ab372f0f0b48b3dec7bc6d21b170a
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
plug leak: release nodes not added to the iter list
ok stsp@
- Commit:
599785e85d854563801d9640012f93e799ff87ea
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
got_commit_graph_close: free tailq contents
The tailq should ideally be empty when we reach got_commit_graph_close,
but consumer code may exit the commit graph loop earlier.
spotted by and ok stsp@
- Commit:
8b925c6ccd3968917253ea191906a1710c40ed2d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add back sys/queue.h
Now that the handling of including sys/queue.h is better, there's no
need to remove those lines from the source. Copy the location of those
original sys/queue.h lines from upstream at the same line number, so as
to avoid any conflicts in the future.
- Commit:
ec242592d329728975bf10a1196907167de7fed0
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list.
ok op@
- Commit:
945f922947fbf90d4ae30e870a0d0262cf12bea8
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
stop relying on commit cache for good performance of got_object_id_by_path()
Instead of internally opening and closing the same commit object over and
over again, require callers to pass an open commit object in. Avoids an
inherent dependency on the commit object cache for reasonable performance.
ok op@
- Commit:
768705e331a0ff020ecc806142aecdecdbfb2e89
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make it possible to merge vendor branches with 'got merge'
- Commit:
92a9e85d28a30997176ce0d3c2915e3ea70782c7
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add FreeBSD support
This adds the capability to compile got-portable on FreeBSD.
- Commit:
dd038bc6ec835ad3fd3c0b5303b8af9ad506c8cc
- From:
- Thomas Adam <thomas@xteddy.org>
- Via:
- Thomas Adam <thomas.adam@smoothwall.net>
- Date:
portable: initial Linux compilation
This commit modifies the GoT main branch to be able to compile it under
linux.
- 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:
ca6e02acaa175cf833a3424ff1c4842445c0109f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for first-parent history traversal to got-read-pack
- Commit:
5aa813935b6489921083da5ed9459a1cfb8a03e3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add copyright year for files already touched in 2020
- Commit:
32c85d2cf904f18a4a3090ec5e66c40d94ee64d0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
revert e7a5b9e9b763327a7e1ddd69f6bc533565d60794; it changed blame output
- Commit:
e7a5b9e9b763327a7e1ddd69f6bc533565d60794
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
commit graph's close_branch() can be inlined in one place
- Commit:
df8cd9c6cd301882ae057c712e2aee94a4b0b195
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
small simplification in got_commit_graph_iter_next()
- Commit:
a450c2bf919ba378f4246bb2be389f2cade9bcf1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove a misleading comment
- Commit:
48595de13ae9d5618864199e01c22c837101f905
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove redundant code from add_node_to_iter_list()
- Commit:
94489f7d96343ddd926acbfe5d6b98bc759d60ca
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove commit graph iter_node pointer; use the iter_list head instead
- Commit:
5175b31a9e97f249cc1e6621f50d05b3c3dca974
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
improve commit graph's error handling of non-existent paths
- Commit:
7e33c8c53ef5e4d67f3fe59f5f2331ef875e6d53
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
no need to open a commit in got_commit_graph_iter_start()
- Commit:
3ff3126d9bc18078f944e7e176dc076111aa436a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simplify got_commit_graph_iter_start(); adding an ID to open_branches suffices
- Commit:
14159a7b730f977bc97cb05b4cb5b0faba3815f5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused 'node' parameter from advance_branch()