summaryrefslogtreecommitdiff
path: root/src/libgit2/grafts.c
Commit message (Collapse)AuthorAgeFilesLines
* oid: use an oid array instead of shallowarrayEdward Thomson2023-05-091-5/+11
| | | | | | Users should provide us an array of object ids; we don't need a separate type. And especially, we should not be mutating user-providing values. Instead, use `git_oid *` in the shallow code.
* grafts: make `from_file` be `open_or_refresh`Edward Thomson2023-05-081-5/+14
| | | | | | | | | | The semantics of `from_file` are weird - it looks like a function that just opens a file, but it actually inspects the pointer, which is unexpected and could make things very crashy. Make an `open` function that just does an open, and move the magic to `open_or_refresh` whose name better indicates that it may do weird stuff.
* grafts: handle SHA256 graft filesEdward Thomson2023-05-081-5/+17
|
* grafts: use `git_parse` to parse object IDsEdward Thomson2023-05-081-9/+7
| | | | Don't mix parsing by hand and using `git_parse` to parse.
* futils: use SHA256 for checksums alwaysEdward Thomson2023-05-081-2/+3
| | | | | | | | Use SHA256 for file checksums. SHA1 makes no sense as a default in 2023. Given that we're just looking at a file checksum to see if it's changed, this does not need to take repository's OID type into account or otherwise be configurable.
* shallow: use GIT_ASSERT (not assert)Edward Thomson2023-04-241-6/+7
|
* shallow: remove feature flagEdward Thomson2023-04-241-4/+2
| | | | | The opt mechanism isn't _really_ meant to be for feature flags, and it's weird to feature flag shallow / unshallow at all.
* include oid.h in grafts.cYuang Li2022-08-311-0/+1
|
* fix test failuresYuang Li2022-08-311-2/+2
|
* Use GIT_OID_SHA1_HEXSIZEYuang Li2022-08-311-4/+4
|
* fix grafts and shallowarray memory leaksyuangli2022-08-021-0/+3
|
* eliminate build warningsyuangli2022-07-291-5/+2
|
* improve error handlingyuangli2022-07-281-3/+7
|
* eliminate build warningsyuangli2022-07-271-3/+3
|
* fix build errorsyuangli2022-07-261-0/+242