Commit graph

5 commits

Author SHA1 Message Date
Aditya Sirish
79efbf235f
gitinterface: Support types for tree entries
Signed-off-by: Aditya Sirish <aditya@saky.in>
2025-02-02 14:07:34 -05:00
Aditya Sirish
3236696c98
*: Extend TreeBuilder to reuse existing trees
If an intermediate tree already exists and we know this ahead of time,
we should use it without recreating it with all of its contents resolved
and written recursively. This commit adds support for such cases and
renames TreeBuilder's APIs to generalize away from accepting blob IDs
only.

Signed-off-by: Aditya Sirish <aditya@saky.in>
2025-02-02 12:06:18 -05:00
Aditya Sirish
840b2cf45f
*: Fix GetLatestReferenceEntry's before condition
The before condition check was incorrect when handling repositories that
were not numbered from the start. This commit updates the before entry
number condition to only apply if the entry being examined is in fact
numbered.

This commit also adds some debug statements.

Signed-off-by: Aditya Sirish <aditya@saky.in>
2025-01-09 16:03:07 -05:00
Aditya Sirish
90a4d1a806
gittuf,cache,policy,cmd: Use persistent cache
This commit adds support for persistent cache searching as well as
explicit populating.

Signed-off-by: Aditya Sirish <aditya@saky.in>
2025-01-08 12:42:13 -05:00
Aditya Sirish
8d15e71921
cache: Add persistent cache
Signed-off-by: Aditya Sirish <aditya@saky.in>
2025-01-02 15:11:38 -05:00