source-controller/pkg/git/gogit
Sunny 749068e9c3
pkg/git: introduce concrete and partial commit
Introduce concrete and partial commits. Concrete commits have all the
information from remote including the hash and commit content. Partial
commits are based on locally available copy of a repo, they may only
contain the commit hash and reference.

IsConcreteCommit() can be used to find out if a given commit is based on
local information or full remote repo information.

Update go-git and libgit2 branch/tag clone optimization to return a
partial commit and no error.

Update and simplify the go-git and libgit2 tests for the same.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-05-20 19:52:18 +05:30
..
checkout.go pkg/git: introduce concrete and partial commit 2022-05-20 19:52:18 +05:30
checkout_test.go pkg/git: introduce concrete and partial commit 2022-05-20 19:52:18 +05:30
gogit.go gogit: allow checkout of commit without branch 2021-10-27 00:43:31 +05:30
transport.go git: Add git.HostKeyAlgos 2022-05-06 17:58:09 +01:00
transport_test.go add flag to allow configuration of SSH kex algos 2022-04-07 16:43:15 +05:30