Merge pull request #5 from entirehq/nodo/module-name · Entire

Merge pull request #5 from entirehq/nodo/module-name

9535263→main· nodo·3mo ago·35 files·+76 added/-76 removed

Rename module to match the repo name

Changes

35

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"

"github.com/soph/git-sync/internal/validation"
    "github.com/soph/git-sync/pkg/gitsync"
    "github.com/soph/git-sync/pkg/gitsync/unstable"
    "github.com/entirehq/git-sync/internal/validation"
    "github.com/entirehq/git-sync/pkg/gitsync"
    "github.com/entirehq/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"

"github.com/soph/git-sync/pkg/gitsync/unstable"
    "github.com/entirehq/git-sync/pkg/gitsync/unstable"
)

func TestSummarizeRuns(t *testing.T) {

Mcmd/git-sync-bench/main_test.go+1/-1

9 unmodified lines

10
11
12
13
14
15
13
14
15
16
17
18

9 unmodified lines

"strings"

"github.com/go-git/go-git/v6/plumbing"
    "github.com/soph/git-sync/internal/validation"
    "github.com/soph/git-sync/pkg/gitsync"
    "github.com/soph/git-sync/pkg/gitsync/unstable"
    "github.com/entirehq/git-sync/internal/validation"
    "github.com/entirehq/git-sync/pkg/gitsync"
    "github.com/entirehq/git-sync/pkg/gitsync/unstable"
)

func main() {

Mcmd/git-sync/main.go+3/-3

23 unmodified lines

24
25
26
27
27
28
29
30

23 unmodified lines

"github.com/go-git/go-git/v6/plumbing/transport"
    transporthttp "github.com/go-git/go-git/v6/plumbing/transport/http"
    "github.com/go-git/go-git/v6/storage/memory"
    "github.com/soph/git-sync/pkg/gitsync/unstable"
    "github.com/entirehq/git-sync/pkg/gitsync/unstable"
)

const testBranch = "master"

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"

"github.com/soph/git-sync/pkg/gitsync"
    "github.com/entirehq/git-sync/pkg/gitsync"
)

func runSync(ctx context.Context) error {

Mdocs/embedding.md+1/-1

1
1
2
3
4

module github.com/soph/git-sync
module github.com/entirehq/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"

"github.com/soph/git-sync/internal/gitproto"
    "github.com/soph/git-sync/internal/planner"
    "github.com/entirehq/git-sync/internal/gitproto"
    "github.com/entirehq/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

7 unmodified lines

8
9
10
11
11
12
13
14

7 unmodified lines

"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"
    "github.com/soph/git-sync/internal/validation"
    "github.com/entirehq/git-sync/internal/validation"
)

// PlanConfig holds configuration for plan generation.

Minternal/planner/planner.go+1/-1

9 unmodified lines

10
11
12
13
13
14
15
16

9 unmodified lines

"github.com/go-git/go-git/v6/plumbing"
    "github.com/go-git/go-git/v6/plumbing/object"
    "github.com/go-git/go-git/v6/storage/memory"
    "github.com/soph/git-sync/internal/validation"
    "github.com/entirehq/git-sync/internal/validation"
)

func TestSelectBranches(t *testing.T) {

Minternal/planner/planner_test.go+1/-1

6 unmodified lines

7
8
9
10
10
11
12
13

6 unmodified lines

"strings"

"github.com/go-git/go-git/v6/plumbing"
    "github.com/soph/git-sync/internal/validation"
    "github.com/entirehq/git-sync/internal/validation"
)

// RefKind distinguishes branch refs from tag refs.

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"

"github.com/soph/git-sync/internal/convert"
    "github.com/soph/git-sync/internal/gitproto"
    "github.com/soph/git-sync/internal/planner"
    "github.com/entirehq/git-sync/internal/convert"
    "github.com/entirehq/git-sync/internal/gitproto"
    "github.com/entirehq/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

10 unmodified lines

11
12
13
14
15
16
14
15
16
17
18
19

10 unmodified lines

"github.com/go-git/go-git/v6/plumbing"

// 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

10 unmodified lines

11
12
13
14
15
16
14
15
16
17
18
19

10 unmodified lines

"github.com/go-git/go-git/v6/plumbing"
    "github.com/go-git/go-git/v6/plumbing/storer"

// 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"

"github.com/soph/git-sync/internal/convert"
    "github.com/soph/git-sync/internal/gitproto"
    "github.com/soph/git-sync/internal/planner"
    "github.com/soph/git-sync/internal/syncertest"
    "github.com/entirehq/git-sync/internal/convert"
    "github.com/entirehq/git-sync/internal/gitproto"
    "github.com/entirehq/git-sync/internal/planner"
    "github.com/entirehq/git-sync/internal/syncertest"
)

func TestPlansToPushPlans(t *testing.T) {

Minternal/strategy/materialized/materialized_test.go+4/-4

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"

// 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"

"github.com/soph/git-sync/internal/auth"
    "github.com/entirehq/git-sync/internal/auth"
)

func TestResolveAuthMethodPrefersExplicitToken(t *testing.T) {

Minternal/syncer/auth_test.go+1/-1

5 unmodified lines

6
7
8
9
9
10
11
12

5 unmodified lines

"github.com/go-git/go-git/v6/plumbing"
    "github.com/go-git/go-git/v6/plumbing/storer"
    "github.com/go-git/go-git/v6/storage/memory"
    "github.com/soph/git-sync/internal/syncertest"
    "github.com/entirehq/git-sync/internal/syncertest"
    "io"
    "testing"
)

Minternal/syncer/benchmark_test.go+1/-1

15 unmodified lines

16
17
18
19
20
21
19
20
21
22
23
24

15 unmodified lines

"testing"

"github.com/go-git/go-git/v6/plumbing"
    "github.com/soph/git-sync/internal/gitproto"
    "github.com/soph/git-sync/internal/planner"
    bstrap "github.com/soph/git-sync/internal/strategy/bootstrap"
    "github.com/entirehq/git-sync/internal/gitproto"
    "github.com/entirehq/git-sync/internal/planner"
    bstrap "github.com/entirehq/git-sync/internal/strategy/bootstrap"
)

const gitHTTPBackendEnv = "GITSYNC_E2E_GIT_HTTP_BACKEND"

Minternal/syncer/git_http_backend_test.go+3/-3

27 unmodified lines

28
29
30
31
32
33
34
31
32
33
34
35
36
37

27 unmodified lines

"github.com/go-git/go-git/v6/plumbing/transport"
    transporthttp "github.com/go-git/go-git/v6/plumbing/transport/http"
    "github.com/go-git/go-git/v6/storage/memory"
    "github.com/soph/git-sync/internal/auth"
    "github.com/soph/git-sync/internal/gitproto"
    "github.com/soph/git-sync/internal/planner"
    "github.com/soph/git-sync/internal/syncertest"
    "github.com/entirehq/git-sync/internal/auth"
    "github.com/entirehq/git-sync/internal/gitproto"
    "github.com/entirehq/git-sync/internal/planner"
    "github.com/entirehq/git-sync/internal/syncertest"
)

const testBranch = "master"

Minternal/syncer/integration_test.go+4/-4

5 unmodified lines

6
7
8
9
9
10
11
12

5 unmodified lines

"strings"
    "sync"

"github.com/soph/git-sync/internal/gitproto"
    "github.com/entirehq/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"

"github.com/soph/git-sync/internal/auth"
    "github.com/soph/git-sync/internal/convert"
    "github.com/soph/git-sync/internal/gitproto"
    "github.com/soph/git-sync/internal/planner"
    bstrap "github.com/soph/git-sync/internal/strategy/bootstrap"
    "github.com/soph/git-sync/internal/strategy/incremental"
    "github.com/soph/git-sync/internal/strategy/materialized"
    repstrat "github.com/soph/git-sync/internal/strategy/replicate"
    "github.com/soph/git-sync/internal/validation"
    "github.com/entirehq/git-sync/internal/auth"
    "github.com/entirehq/git-sync/internal/convert"
    "github.com/entirehq/git-sync/internal/gitproto"
    "github.com/entirehq/git-sync/internal/planner"
bstrap "github.com/entirehq/git-sync/internal/strategy/bootstrap"
    "github.com/entirehq/git-sync/internal/strategy/incremental"
    "github.com/entirehq/git-sync/internal/strategy/materialized"
    repstrat "github.com/entirehq/git-sync/internal/strategy/replicate"
    "github.com/entirehq/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 "github.com/soph/git-sync/internal/strategy/bootstrap"
    bstrap "github.com/entirehq/git-sync/internal/strategy/bootstrap"
)

func TestGitHubOwnerRepo(t *testing.T) {

Minternal/syncer/syncer_test.go+1/-1

4 unmodified lines

5
6
7
8
9
8
9
10
11
12

4 unmodified lines

"fmt"
    "net/http"

"github.com/soph/git-sync/internal/validation"
    "github.com/soph/git-sync/pkg/gitsync/internalbridge"
    "github.com/entirehq/git-sync/internal/validation"
    "github.com/entirehq/git-sync/pkg/gitsync/internalbridge"
)

// Options configures a Client. It is intentionally small in the first public cut.

Mpkg/gitsync/client.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/protocol/packp"
    "github.com/go-git/go-git/v6/plumbing/transport"

"github.com/soph/git-sync/internal/syncertest"
    "github.com/entirehq/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"

"github.com/soph/git-sync/pkg/gitsync"
    "github.com/entirehq/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"

"github.com/soph/git-sync/internal/syncer"
    "github.com/soph/git-sync/internal/validation"
    "github.com/entirehq/git-sync/internal/syncer"
    "github.com/entirehq/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"

"github.com/soph/git-sync/internal/planner"
    "github.com/soph/git-sync/internal/syncer"
    "github.com/entirehq/git-sync/internal/planner"
    "github.com/entirehq/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"
    "github.com/soph/git-sync/pkg/gitsync/internalbridge"
    "github.com/entirehq/git-sync/pkg/gitsync/internalbridge"
)

// ProtocolMode controls source-side protocol negotiation.

Mpkg/gitsync/types.go+1/-1

5 unmodified lines

6
7
8
9
10
11
12
9
10
11
12
13
14
15

5 unmodified lines

"github.com/go-git/go-git/v6/plumbing"

"github.com/soph/git-sync/internal/syncer"
    "github.com/soph/git-sync/internal/validation"
    "github.com/soph/git-sync/pkg/gitsync"
    "github.com/soph/git-sync/pkg/gitsync/internalbridge"
    "github.com/entirehq/git-sync/internal/syncer"
    "github.com/entirehq/git-sync/internal/validation"
    "github.com/entirehq/git-sync/pkg/gitsync"
    "github.com/entirehq/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"

"github.com/soph/git-sync/pkg/gitsync"
    "github.com/entirehq/git-sync/pkg/gitsync"
)

func TestBuildSyncConfigCarriesAdvancedOptions(t *testing.T) {

Mpkg/gitsync/unstable/client_test.go+1/-1