Commits
- Commit:
d9787ed86ecec0bda7a570181d86c44ba80bd583
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make got_commit_graph_iter_next use caller-provided storage for the id
and adjust the callers. discussed with and ok stsp@
- Commit:
e15c42decfa8a80fb91cc1e19b467efc34a8c05d
- From:
- Omar Polo <op@omarpolo.com>
- 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:
932b646a7df3d0578f831622f02348a768cb07bc
- From:
- Stefan Sperling <stsp@stsp.name>
- 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:
c877c437470e41e7f70828c916ff40189b097fe2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
free commit on error path
while here drop the ternary too: if add_node succeeds `new_node' is
non-NULL. ok stsp@
- Commit:
85a99d1ea6ce4169303c521409e5527f69826641
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plug leak: release nodes not added to the iter list
ok stsp@
- Commit:
9aae7366832613bbb94f56a2465380f5c2f56e7f
- From:
- Omar Polo <op@omarpolo.com>
- 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:
d7b5a0e827bb38e5c8502f0ba8d7838fedaba19b
- From:
- Stefan Sperling <stsp@stsp.name>
- 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:
a44927cc053de352796022400f27bce4522b407c
- From:
- Stefan Sperling <stsp@stsp.name>
- 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:
4e91ef1519233965edd1bbd83f6699f669c8f9d6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make it possible to merge vendor branches with 'got merge'
- 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()
- Commit:
8e29169599cbcb1a6fd1c41a62dc3ccab59c5023
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
commit graph's idset data pointers were not actually used
- Commit:
57eecd46cb6d54281927e44797500c40628310c3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove pointless output parameters from fetch_commits_from_open_branches()
- Commit:
ec1904dc6e558c439fa9d82b2871bcff5ea9fe81
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix error in previous commit