Skip to content

Commit 9220929

Browse files
committed
pkg/vcs: export GitWrapper
The current common vcs interface and its implementations are designed to support a very big number of situations (git modules, cleaning up complex state, etc), which is too heavy and restrictive when we just need a thin wrapper over the git command that supports a few basic operations. Refactor pkg/vcs to split out the wrapper code from the big git implementation of the vcs.Repo interface. Export the wrapper to enable reuse in other parts of the system.
1 parent f3558db commit 9220929

File tree

9 files changed

+245
-209
lines changed

9 files changed

+245
-209
lines changed

pkg/vcs/fuchsia.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
// rather than fuchsia.git.
1717
type fuchsia struct {
1818
dir string
19-
repo *git
19+
repo *gitRepo
2020
}
2121

2222
func newFuchsia(dir string, opts []RepoOpt) *fuchsia {
@@ -26,7 +26,7 @@ func newFuchsia(dir string, opts []RepoOpt) *fuchsia {
2626
opts = append(opts, OptPrecious)
2727
return &fuchsia{
2828
dir: dir,
29-
repo: newGit(dir, nil, opts),
29+
repo: newGitRepo(dir, nil, opts),
3030
}
3131
}
3232

0 commit comments

Comments
 (0)