Rename module name to `entire.io/entire/git-sync` · Entire
Rename module name to entire.io/entire/git-sync
e6bebef→main·
nodo·2mo ago·37 files·+78 added/-78 removed
Sessions
Transcript data is unavailable for this checkpoint.
Changes
37
M.golangci.yaml+1/-1
cmd
git-sync-bench
Mmain.go+3/-3
Mmain_test.go+1/-1
git-sync
Mmain.go+3/-3
Mmain_test.go+1/-1
docs
Membedding.md+1/-1
Mgo.mod+1/-1
internal
convert
Mconvert.go+2/-2
Mconvert_test.go+2/-2
planner
Mplanner.go+1/-1
Mplanner_test.go+1/-1
Mtypes.go+1/-1
strategy
bootstrap
Mbootstrap.go+3/-3
Mbootstrap_test.go+2/-2
incremental
Mincremental.go+3/-3
Mincremental_test.go+3/-3
materialized
Mmaterialized.go+3/-3
Mmaterialized_test.go+4/-4
replicate
Mreplicate.go+3/-3
Mreplicate_test.go+2/-2
syncer
Mauth_test.go+1/-1
Mbenchmark_test.go+1/-1
Mgit_http_backend_test.go+3/-3
Mintegration_test.go+4/-4
Mstats.go+1/-1
Msyncer.go+9/-9
Msyncer_test.go+1/-1
mise-tasks/lint
Mlicenses+1/-1
pkg/gitsync
Mclient.go+2/-2
Mclient_test.go+1/-1
Mexample_test.go+1/-1
internalbridge
Mconfig.go+2/-2
Mmodel.go+2/-2
Mmodel_test.go+2/-2
Mtypes.go+1/-1
unstable
Mclient.go+4/-4
Mclient_test.go+1/-1
96 unmodified lines
97
98
99
100
100
101
102
103
96 unmodified lines
- github.com/go-git/go-git/v6/storage.Storer
- github.com/go-git/go-git/v6/plumbing/storer.EncodedObjectIter
- github.com/go-git/go-billy/v6.Filesystem
- entire.io/git-sync/internal/auth.Method
- entire.io/entire/git-sync/internal/auth.Method
nolintlint:
require-explanation: true
require-specific: true
M.golangci.yaml+1/-1
14 unmodified lines
15
16
17
18
19
20
18
19
20
21
22
23
14 unmodified lines
git "github.com/go-git/go-git/v6"
"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync"
"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
)
type scenario string
Mcmd/git-sync-bench/main.go+3/-3
2 unmodified lines
3
4
5
6
6
7
8
9
2 unmodified lines
import (
testing
"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
)
func TestSummarizeRuns(t *testing.T) {
Mcmd/git-sync-bench/main_test.go+1/-1
8 unmodified lines
9
10
11
12
13
14
12
13
14
15
16
17
8 unmodified lines
"os"
"strings"
"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync"
"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
"github.com/go-git/go-git/v6/plumbing"
)
Mcmd/git-sync/main.go+3/-3
13 unmodified lines
14
15
16
17
17
18
19
20
13 unmodified lines
"testing"
"time"
"entire.io/git-sync/pkg/gitsync/unstable"
"entire.io/entire/git-sync/pkg/gitsync/unstable"
billy "github.com/go-git/go-billy/v6"
"github.com/go-git/go-billy/v6/memfs"
git "github.com/go-git/go-git/v6"
Mcmd/git-sync/main_test.go+1/-1
48 unmodified lines
49
50
51
52
52
53
54
55
48 unmodified lines
"context"
"net/http"
"entire.io/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync"
)
func runSync(ctx context.Context) error {
Mdocs/embedding.md+1/-1
1
1
2
3
4
module entire.io/git-sync
module entire.io/entire/git-sync
go 1.25.2
Mgo.mod+1/-1
5 unmodified lines
6
7
8
9
10
9
10
11
12
13
5 unmodified lines
import (
"github.com/go-git/go-git/v6/plumbing"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)
// DesiredRefs converts planner desired refs to gitproto desired refs.
Minternal/convert/convert.go+2/-2
4 unmodified lines
5
6
7
8
9
8
9
10
11
12
4 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
func TestDesiredRefsForPlans(t *testing.T) {
Minternal/convert/convert_test.go+2/-2
4 unmodified lines
5
6
7
8
8
9
10
11
4 unmodified lines
"fmt"
"sort"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/validation"
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/object"
"github.com/go-git/go-git/v6/plumbing/storer"
Minternal/planner/planner.go+1/-1
5 unmodified lines
6
7
8
9
9
10
11
12
5 unmodified lines
"testing"
"time"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/validation"
git "github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/object"
Minternal/planner/planner_test.go+1/-1
5 unmodified lines
6
7
8
9
9
10
11
12
5 unmodified lines
"sort"
"strings"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/validation"
"github.com/go-git/go-git/v6/plumbing"
)
Minternal/planner/types.go+1/-1
22 unmodified lines
23
24
25
26
27
28
26
27
28
29
30
31
22 unmodified lines
"github.com/go-git/go-git/v6/plumbing/storer"
"github.com/go-git/go-git/v6/storage/memory"
"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
)
const (
Minternal/strategy/bootstrap/bootstrap.go+3/-3
17 unmodified lines
18
19
20
21
22
21
22
23
24
25
17 unmodified lines
"github.com/go-git/go-git/v6/plumbing/transport"
"github.com/go-git/go-git/v6/storage/memory"
func TestIsTargetBodyLimitError(t *testing.T) {
Minternal/strategy/bootstrap/bootstrap_test.go+2/-2
11 unmodified lines
12
13
14
15
16
17
15
16
17
18
19
20
11 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
// Params holds the inputs for an incremental relay execution.
Minternal/strategy/incremental/incremental.go+3/-3
8 unmodified lines
9
10
11
12
13
14
12
13
14
15
16
17
8 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
func TestPlansToPushPlans(t *testing.T) {
Minternal/strategy/incremental/incremental_test.go+3/-3
11 unmodified lines
12
13
14
15
16
17
15
16
17
18
19
20
11 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/storer"
"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
// Params holds the inputs for a materialized push.
Minternal/strategy/materialized/materialized.go+3/-3
7 unmodified lines
8
9
10
11
12
13
14
11
12
13
14
15
16
17
7 unmodified lines
"github.com/go-git/go-git/v6/plumbing/object"
"github.com/go-git/go-git/v6/plumbing/storer"
"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncertest"
)
func TestPlansToPushPlans(t *testing.T) {
Minternal/strategy/materialized/materialized_test.go+4/-4
9 unmodified lines
10
11
12
13
14
15
13
14
15
16
17
18
9 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
// Params holds the inputs for a replication relay execution.
Minternal/strategy/replicate/replicate.go+3/-3
7 unmodified lines
8
9
10
11
12
11
12
13
14
15
7 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
type fakeSourceService struct {
Minternal/strategy/replicate/replicate_test.go+2/-2
13 unmodified lines
14
15
16
17
17
18
19
20
13 unmodified lines
"github.com/go-git/go-git/v6/plumbing/transport"
transporthttp "github.com/go-git/go-git/v6/plumbing/transport/http"
"entire.io/git-sync/internal/auth"
"entire.io/entire/git-sync/internal/auth"
)
func TestResolveAuthMethodPrefersExplicitToken(t *testing.T) {
Minternal/syncer/auth_test.go+1/-1
1 unmodified line
2
3
4
5
5
6
7
8
1 unmodified line
import (
"context"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/syncertest"
git "github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/plumbing"
"github.com/go-git/go-git/v6/plumbing/storer"
)
Minternal/syncer/benchmark_test.go+1/-1
14 unmodified lines
15
16
17
18
19
20
18
19
20
21
22
23
14 unmodified lines
"sync"
"testing"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
bstrap "entire.io/git-sync/internal/strategy/bootstrap"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
bstrap "entire.io/entire/git-sync/internal/strategy/bootstrap"
"github.com/go-git/go-git/v6/plumbing"
)
Minternal/syncer/git_http_backend_test.go+3/-3
13 unmodified lines
14
15
16
17
18
19
20
17
18
19
20
21
22
23
13 unmodified lines
"testing"
"time"
"entire.io/git-sync/internal/auth"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/auth"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncertest"
billy "github.com/go-git/go-billy/v6"
git "github.com/go-git/go-git/v6"
"github.com/go-git/go-git/v6/plumbing"
Minternal/syncer/integration_test.go+4/-4
6 unmodified lines
7
8
9
10
10
11
12
13
6 unmodified lines
"strings"
"sync"
"entire.io/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/gitproto"
// ServiceStats tracks transfer statistics for a single service.
Minternal/syncer/stats.go+1/-1
20 unmodified lines
21
22
23
24
25
26
27
28
29
30
31
32
24
25
26
27
28
29
30
31
32
33
34
35
20 unmodified lines
"github.com/go-git/go-git/v6/plumbing/transport"
"github.com/go-git/go-git/v6/storage/memory"
"entire.io/git-sync/internal/auth"
"entire.io/git-sync/internal/convert"
"entire.io/git-sync/internal/gitproto"
"entire.io/git-sync/internal/planner"
bstrap "entire.io/git-sync/internal/strategy/bootstrap"
"entire.io/git-sync/internal/strategy/incremental"
"entire.io/git-sync/internal/strategy/materialized"
repstrat "entire.io/git-sync/internal/strategy/replicate"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/auth"
"entire.io/entire/git-sync/internal/convert"
"entire.io/entire/git-sync/internal/gitproto"
"entire.io/entire/git-sync/internal/planner"
bstrap "entire.io/entire/git-sync/internal/strategy/bootstrap"
"entire.io/entire/git-sync/internal/strategy/incremental"
"entire.io/entire/git-sync/internal/strategy/materialized"
repstrat "entire.io/entire/git-sync/internal/strategy/replicate"
"entire.io/entire/git-sync/internal/validation"
)
const (
Minternal/syncer/syncer.go+9/-9
2 unmodified lines
3
4
5
6
6
7
8
9
2 unmodified lines
import (
"testing"
bstrap "entire.io/git-sync/internal/strategy/bootstrap"
bstrap "entire.io/entire/git-sync/internal/strategy/bootstrap"
)
func TestGitHubOwnerRepo(t *testing.T) {
Minternal/syncer/syncer_test.go+1/-1
45 unmodified lines
46
47
48
49
49
50
51
52
45 unmodified lines
VIOLATIONS=()
while IFS=',' read -r package _url license; do
# Skip internal packages
if [[ "$package" == entire.io/git-sync/* ]]; then
if [[ "$package" == entire.io/entire/git-sync/* ]]; then
continue
fi
Mmise-tasks/lint/licenses+1/-1
5 unmodified lines
6
7
8
9
10
9
10
11
12
13
5 unmodified lines
"fmt"
"net/http"
"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync/internalbridge"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync/internalbridge"
// Options configures a Client. It is intentionally small in the first public cut.
Mpkg/gitsync/client.go+2/-2
14 unmodified lines
15
16
17
18
18
19
20
21
14 unmodified lines
"github.com/go-git/go-git/v6/plumbing/protocol/packp"
"github.com/go-git/go-git/v6/plumbing/transport"
"entire.io/git-sync/internal/syncertest"
"entire.io/entire/git-sync/internal/syncertest"
)
type errAuthProvider struct{}
Mpkg/gitsync/client_test.go+1/-1
3 unmodified lines
4
5
6
7
7
8
9
10
3 unmodified lines
"context"
"net/http"
"entire.io/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync"
)
func ExampleClient_Sync() {
Mpkg/gitsync/example_test.go+1/-1
3 unmodified lines
4
5
6
7
8
7
8
9
10
11
3 unmodified lines
"context"
"net/http"
"entire.io/git-sync/internal/syncer"
"entire.io/git-sync/internal/validation"
"entire.io/entire/git-sync/internal/syncer"
"entire.io/entire/git-sync/internal/validation"
)
type ProtocolMode string
Mpkg/gitsync/internalbridge/config.go+2/-2
2 unmodified lines
3
4
5
6
7
6
7
8
9
10
2 unmodified lines
import (
"github.com/go-git/go-git/v6/plumbing"
"entire.io/git-sync/internal/planner"
"entire.io/git-sync/internal/syncer"
"entire.io/entire/git-sync/internal/planner"
"entire.io/entire/git-sync/internal/syncer"
)
type RefKind string
Mpkg/gitsync/internalbridge/model.go+2/-2
4 unmodified lines
5
6
7
8
9
8
9
10
11
12
4 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
func TestHashStringZeroHashIsEmpty(t *testing.T) {
Mpkg/gitsync/internalbridge/model_test.go+2/-2
1 unmodified line
2
3
4
5
5
6
7
8
1 unmodified line
import (
"context"
"entire.io/git-sync/pkg/gitsync/internalbridge"
"entire.io/entire/git-sync/pkg/gitsync/internalbridge"
)
// ProtocolMode controls source-side protocol negotiation.
Mpkg/gitsync/types.go+1/-1
6 unmodified lines
7
8
9
10
11
12
13
10
11
12
13
14
15
16
6 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"entire.io/git-sync/internal/syncer"
"entire.io/git-sync/internal/validation"
"entire.io/git-sync/pkg/gitsync"
"entire.io/git-sync/pkg/gitsync/internalbridge"
"entire.io/entire/git-sync/internal/syncer"
"entire.io/entire/git-sync/internal/validation"
"entire.io/entire/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync/internalbridge"
)
const DefaultMaterializedMaxObjects = syncer.DefaultMaterializedMaxObjects
Mpkg/gitsync/unstable/client.go+4/-4
6 unmodified lines
7
8
9
10
10
11
12
13
6 unmodified lines
"github.com/go-git/go-git/v6/plumbing"
"entire.io/git-sync/pkg/gitsync"
"entire.io/entire/git-sync/pkg/gitsync"
)
func TestBuildSyncConfigCarriesAdvancedOptions(t *testing.T) {
Mpkg/gitsync/unstable/client_test.go+1/-1