summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* remote: add git_refspec to update_tipsethomson/update_tips_specEdward Thomson2023-05-1110-25/+46
|
* Merge pull request #6557 from libgit2/ethomson/shallowEdward Thomson2023-05-0960-76/+1628
|\ | | | | Shallow (#6396) with some fixes from review
| * fetch: remove `unshallow` optionEdward Thomson2023-05-093-13/+15
| | | | | | | | | | The `depth` field is suitable to specify unshallowing; provide an enum to aide in specifying the `unshallow` value.
| * oid: use an oid array instead of shallowarrayEdward Thomson2023-05-0918-176/+304
| | | | | | | | | | | | 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.
| * cli: add --depth option to cloneEdward Thomson2023-05-081-6/+22
| |
| * grafts: make `from_file` be `open_or_refresh`Edward Thomson2023-05-083-8/+18
| | | | | | | | | | | | | | | | | | | | 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.
| * shallow: cleanup whitespace in testsEdward Thomson2023-05-081-16/+16
| |
| * shallow: don't default to -1 for depthEdward Thomson2023-05-083-12/+9
| | | | | | | | | | Depth of `0` should indicate full depth. Disallow negative values (they may have a future meaning) and use `0` as the default.
| * grafts: handle SHA256 graft filesEdward Thomson2023-05-085-12/+24
| |
| * 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-082-7/+11
| | | | | | | | | | | | | | | | 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: avoid unnecessary pkt freeEdward Thomson2023-05-081-7/+9
| | | | | | | | Looks like a double-free here.
| * transport: transports understand oid typeEdward Thomson2023-04-253-12/+24
| | | | | | | | Teach the smart transport more about oid types, instead of assuming SHA1.
| * shallow: don't assume SHA1Edward Thomson2023-04-252-26/+46
| |
| * smart: validate shallow/unshallow pktsEdward Thomson2023-04-251-6/+24
| |
| * shallow: use GIT_ASSERT (not assert)Edward Thomson2023-04-242-11/+13
| |
| * shallow: move tests to onlineEdward Thomson2023-04-241-12/+4
| |
| * shallow: remove feature flagEdward Thomson2023-04-249-36/+5
| | | | | | | | | | The opt mechanism isn't _really_ meant to be for feature flags, and it's weird to feature flag shallow / unshallow at all.
| * Merge remote-tracking branch 'origin/main' into shallow-clone-networkEdward Thomson2023-04-22240-1244/+4685
| |\
| * | Remove unnecessary include.lmcglash2023-03-131-1/+0
| | |
| * | Update src/libgit2/fetch.cLaurence McGlashan2023-03-101-1/+1
| | | | | | | | | Co-authored-by: Qix <Qix-@users.noreply.github.com>
| * | Merge branch 'shallow-clone-network' of https://github.com/mathworks/libgit2 ↵lmcglash2023-03-102-3/+3
| |\ \ | | | | | | | | | | | | into shallow-clone-network
| | * | Apply suggestions from code reviewLaurence McGlashan2023-03-102-3/+3
| | | | | | | | | | | | Co-authored-by: Qix <Qix-@users.noreply.github.com>
| * | | Remove unused git_transport_flags_tlmcglash2023-03-101-9/+0
| | | |
| * | | Remove stray commalmcglash2023-03-101-2/+2
| |/ /
| * | Fix merge errorlmcglash2023-03-101-26/+17
| | |
| * | Merge commit 'd066d0d95c43e97df6624292f3f527f9372ca8fe'lmcglash2023-03-10323-1976/+8392
| |\ \
| * | | refactor grafts testsYuang Li2022-09-063-9/+9
| | | |
| * | | fix shallow array searchYuang Li2022-09-061-1/+1
| | | |
| * | | remove unused statementsYuang Li2022-09-052-2/+0
| | | |
| * | | fix error handlingYuang Li2022-09-051-2/+2
| | | |
| * | | fix depth initialisationYuang Li2022-09-051-3/+6
| | | |
| * | | fix seg faultsYuang Li2022-09-052-1/+3
| | | |
| * | | fix free errorYuang Li2022-08-311-2/+0
| | | |
| * | | fix shallowarray testYuang Li2022-08-311-3/+3
| | | |
| * | | refactor smart_pktYuang Li2022-08-311-2/+2
| | | |
| * | | include oid.h in grafts.cYuang Li2022-08-311-0/+1
| | | |
| * | | fix test failuresYuang Li2022-08-312-4/+6
| | | |
| * | | restore getentropyYuang Li2022-08-311-0/+1
| | | |
| * | | restore GIT_RAND_GETENTROPYYuang Li2022-08-311-5/+0
| | | |
| * | | Use GIT_OID_SHA1_HEXSIZEYuang Li2022-08-313-13/+13
| | | |
| * | | Merge pull request #6 from lya001/shallow-clone-networkYuang Li2022-08-1122-40/+608
| |\ \ \ | | | | | | | | | | Shallow clone network
| | * | | document unshallow behaviour in fetch.cyuangli2022-08-111-1/+3
| | | | |
| | * | | remove unused apiyuangli2022-08-113-26/+1
| | | | |
| | * | | support fetch unshallow option on shallow reposyuangli2022-08-097-19/+144
| | | | |
| | * | | fix memory leakyuangli2022-08-091-0/+2
| | | | |
| | * | | edit tests for shallow clonesyuangli2022-08-021-10/+38
| | | | |
| | * | | fix build warningyuangli2022-08-021-1/+1
| | | | |
| | * | | fix grafts and shallowarray memory leaksyuangli2022-08-025-14/+10
| | | | |
| | * | | attempt to fix nego.shallowarray memory leakyuangli2022-08-023-0/+11
| | | | |