source-controller/pkg/git/libgit2
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
..
managed libgit2: remove connection caching 2022-05-13 11:09:02 +01:00
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
libgit2.go gogit: allow checkout of commit without branch 2021-10-27 00:43:31 +05:30
managed_test.go libgit2: Add support for hashed known_hosts 2022-05-16 16:57:22 +01:00
transport.go libgit2: Add support for hashed known_hosts 2022-05-16 16:57:22 +01:00
transport_test.go libgit2: Add support for hashed known_hosts 2022-05-16 16:57:22 +01:00