Set package version to v3

Since we're about to do a v3.0.0 release, let's bump the version to v3.

Make this change automatically with the following command to avoid any
missed items:

  git grep -l github.com/git-lfs/git-lfs/v2 | \
  xargs sed -i -e 's!github.com/git-lfs/git-lfs/v2!github.com/git-lfs/git-lfs/v3!g'
This commit is contained in:
brian m. carlson 2021-09-01 19:41:10 +00:00
parent c6078ece12
commit 087db1de70
No known key found for this signature in database
GPG Key ID: 2D0C9BC12F82B3A1
160 changed files with 427 additions and 427 deletions

@ -198,7 +198,7 @@ mangen : commands/mancontent_gen.go
# 'commands' of Git LFS. It depends upon the contents of the 'docs' directory
# and converts those manpages into code.
commands/mancontent_gen.go : $(wildcard docs/man/*.ronn)
GOOS= GOARCH= $(GO) generate github.com/git-lfs/git-lfs/v2/commands
GOOS= GOARCH= $(GO) generate github.com/git-lfs/git-lfs/v3/commands
# Targets 'all' and 'build' build binaries of Git LFS for the above release
# matrix.

@ -4,11 +4,11 @@ import (
"fmt"
"os"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/spf13/cobra"
)

@ -4,9 +4,9 @@ import (
"io"
"os"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -7,10 +7,10 @@ import (
"path/filepath"
"strings"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -5,11 +5,11 @@ import (
"path/filepath"
"sync/atomic"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -1,9 +1,9 @@
package commands
import (
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/spf13/cobra"
)

@ -3,7 +3,7 @@ package commands
import (
"fmt"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/spf13/cobra"
)

@ -5,11 +5,11 @@ import (
"os"
"time"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)

@ -8,11 +8,11 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/git-lfs/pktline"
"github.com/spf13/cobra"
)

@ -9,11 +9,11 @@ import (
"path/filepath"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -3,8 +3,8 @@ package commands
import (
"os"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/spf13/cobra"
)

@ -7,10 +7,10 @@ import (
"path/filepath"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/locking"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/locking"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -6,10 +6,10 @@ import (
"sort"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/locking"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/locking"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/spf13/cobra"
)

@ -4,9 +4,9 @@ import (
"os"
"strings"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tools/humanize"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tools/humanize"
"github.com/spf13/cobra"
)

@ -6,10 +6,10 @@ import (
"io"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/git/githistory"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/git/githistory"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/gitobj/v2"
"github.com/spf13/cobra"
)

@ -5,13 +5,13 @@ import (
"os"
"path/filepath"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/git/githistory"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/git/githistory"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/gitobj/v2"
"github.com/spf13/cobra"
)

@ -9,15 +9,15 @@ import (
"path/filepath"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/git/gitattr"
"github.com/git-lfs/git-lfs/v2/git/githistory"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tools/humanize"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/git/gitattr"
"github.com/git-lfs/git-lfs/v3/git/githistory"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tools/humanize"
"github.com/git-lfs/gitobj/v2"
"github.com/spf13/cobra"
)

@ -8,13 +8,13 @@ import (
"sort"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git/gitattr"
"github.com/git-lfs/git-lfs/v2/git/githistory"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tools/humanize"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git/gitattr"
"github.com/git-lfs/git-lfs/v3/git/githistory"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tools/humanize"
"github.com/git-lfs/gitobj/v2"
"github.com/spf13/cobra"
)

@ -10,8 +10,8 @@ import (
"io/ioutil"
"os"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/spf13/cobra"
)

@ -3,8 +3,8 @@ package commands
import (
"os"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/locking"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/locking"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)

@ -3,7 +3,7 @@ package commands
import (
"os"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)

@ -6,7 +6,7 @@ import (
"os"
"strings"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)

@ -9,14 +9,14 @@ import (
"sync"
"time"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/fs"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tools/humanize"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/fs"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tools/humanize"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
"golang.org/x/sync/semaphore"

@ -6,11 +6,11 @@ import (
"sync"
"time"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)

@ -3,10 +3,10 @@ package commands
import (
"os"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
"github.com/spf13/cobra"
)

@ -5,13 +5,13 @@ import (
"io"
"os"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tools/humanize"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tools/humanize"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/spf13/cobra"
)

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/git-lfs/git-lfs/v2/lfshttp/standalone"
"github.com/git-lfs/git-lfs/v3/lfshttp/standalone"
"github.com/spf13/cobra"
)

@ -9,9 +9,9 @@ import (
"path/filepath"
"strings"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -10,9 +10,9 @@ import (
"strings"
"time"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/git/gitattr"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/git/gitattr"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -1,7 +1,7 @@
package commands
import (
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/spf13/cobra"
)

@ -5,9 +5,9 @@ import (
"fmt"
"os"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/locking"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/locking"
"github.com/spf13/cobra"
)

@ -1,7 +1,7 @@
package commands
import (
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v3/lfshttp"
"github.com/spf13/cobra"
)

@ -12,16 +12,16 @@ import (
"sync"
"time"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/lfsapi"
"github.com/git-lfs/git-lfs/v2/locking"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/lfsapi"
"github.com/git-lfs/git-lfs/v3/locking"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tq"
)
// Populate man pages

@ -3,7 +3,7 @@ package commands
import (
"testing"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/stretchr/testify/assert"
)

@ -6,12 +6,12 @@ import (
"strconv"
"strings"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v2/locking"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfshttp"
"github.com/git-lfs/git-lfs/v3/locking"
"github.com/git-lfs/git-lfs/v3/tq"
)
type verifyState byte

@ -9,7 +9,7 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v3/subprocess"
)
var (

@ -1,6 +1,6 @@
package commands
import "github.com/git-lfs/git-lfs/v2/lfs"
import "github.com/git-lfs/git-lfs/v3/lfs"
func collectPointers(pointerCh *lfs.PointerChannelWrapper) ([]*lfs.WrappedPointer, error) {
var pointers []*lfs.WrappedPointer

@ -7,12 +7,12 @@ import (
"os"
"sync"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/git-lfs/git-lfs/v3/tq"
)
// Handles the process of checking out a single file, and updating the git

@ -9,8 +9,8 @@ import (
"sync"
"time"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra"
)

@ -10,12 +10,12 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfs"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfs"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
)

@ -13,9 +13,9 @@ import (
"time"
"unicode"
"github.com/git-lfs/git-lfs/v2/fs"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/fs"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/stretchr/testify/assert"
)

@ -3,7 +3,7 @@ package config_test
import (
"testing"
. "github.com/git-lfs/git-lfs/v2/config"
. "github.com/git-lfs/git-lfs/v3/config"
"github.com/stretchr/testify/assert"
)

@ -7,7 +7,7 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
)
type GitFetcher struct {

@ -9,10 +9,10 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -7,7 +7,7 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/go-netrc/netrc"
"github.com/rubyist/tracerx"
)

8
debian/rules vendored

@ -14,7 +14,7 @@ else ifeq ($(DEB_HOST_ARCH), arm64)
endif
BUILD_DIR := obj-$(DEB_HOST_GNU_TYPE)
export DH_GOPKG := github.com/git-lfs/git-lfs/v2
export DH_GOPKG := github.com/git-lfs/git-lfs/v3
# DH_GOLANG_EXCLUDES typically incorporates vendor exclusions
export DH_GOLANG_EXCLUDES := test github.com/olekukonko/ts/* github.com/xeipuuv/* github.com/spf13/cobra/* github.com/kr/* github.com/pkg/errors github.com/alexbrainman/sspi/*
export DH_GOLANG_GO_GENERATE := 1
@ -56,8 +56,8 @@ override_dh_auto_install:
cp $(BUILD_DIR)/bin/git-lfs debian/git-lfs/usr/bin/
override_dh_auto_test:
ln -s ../../../../../../../commands/repos $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v2/commands/repos
ln -s ../../../../../bin $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v2/bin
ln -s ../../../../../../../commands/repos $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v3/commands/repos
ln -s ../../../../../bin $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v3/bin
#dh_golang uses the wrong dir to test on. This tricks everything into being happy
DEB_BUILD_GNU_TYPE=$(DEB_HOST_GNU_TYPE) dh_auto_test
rm $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v2/commands/repos $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v2/bin
rm $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v3/commands/repos $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v3/bin

@ -4,7 +4,7 @@ import (
"net/url"
"testing"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/stretchr/testify/assert"
)

@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -12,7 +12,7 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -7,7 +7,7 @@ import (
"sync"
"syscall"
"github.com/git-lfs/git-lfs/v2/commands"
"github.com/git-lfs/git-lfs/v3/commands"
)
func main() {

@ -6,9 +6,9 @@ import (
"path/filepath"
"sort"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git/gitattr"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git/gitattr"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -8,7 +8,7 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v3/subprocess"
)
var (

@ -3,7 +3,7 @@ package git_test // to avoid import cycles
import (
"testing"
. "github.com/git-lfs/git-lfs/v2/git"
. "github.com/git-lfs/git-lfs/v3/git"
"github.com/stretchr/testify/assert"
)

@ -7,7 +7,7 @@ import (
"io"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/pktline"
"github.com/rubyist/tracerx"
)

@ -23,9 +23,9 @@ import (
"syscall"
"time"
lfserrors "github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v2/tools"
lfserrors "github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/gitobj/v2"
"github.com/rubyist/tracerx"
)

@ -8,8 +8,8 @@ import (
"testing"
"time"
. "github.com/git-lfs/git-lfs/v2/git"
test "github.com/git-lfs/git-lfs/v2/t/cmd/util"
. "github.com/git-lfs/git-lfs/v3/git"
test "github.com/git-lfs/git-lfs/v3/t/cmd/util"
"github.com/stretchr/testify/assert"
)

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/wildmatch/v2"
)

@ -5,10 +5,10 @@ import (
"fmt"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/gitobj/v2"
)

@ -3,7 +3,7 @@ package githistory
import (
"testing"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/stretchr/testify/assert"
)

@ -8,10 +8,10 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/tasklog"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/tasklog"
"github.com/git-lfs/gitobj/v2"
)

@ -10,8 +10,8 @@ import (
"strings"
"testing"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/gitobj/v2"
"github.com/stretchr/testify/assert"
)

@ -6,8 +6,8 @@ import (
"path"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -10,7 +10,7 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/rubyist/tracerx"
)

@ -5,7 +5,7 @@ import (
"strconv"
"sync"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/rubyist/tracerx"
)

2
go.mod

@ -1,6 +1,6 @@
// The Git LFS project does not maintain a stable API or ABI for this module.
// Please do not import this module outside of the Git LFS project.
module github.com/git-lfs/git-lfs/v2
module github.com/git-lfs/git-lfs/v3
require (
github.com/avast/retry-go v2.4.2+incompatible

@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
)
// Attribute wraps the structure and some operations of Git's conception of an

@ -1,6 +1,6 @@
package lfs
import "github.com/git-lfs/git-lfs/v2/config"
import "github.com/git-lfs/git-lfs/v3/config"
// FetchPruneConfig collects together the config options that control fetching and pruning
type FetchPruneConfig struct {

@ -3,7 +3,7 @@ package lfs
import (
"testing"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/stretchr/testify/assert"
)

@ -6,8 +6,8 @@ import (
"strconv"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
)
// Status represents the status of a file that appears in the output of `git

@ -10,8 +10,8 @@ import (
"os"
"strings"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/subprocess"
)
type pipeRequest struct {

@ -1,9 +1,9 @@
package lfs
import (
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/fs"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/fs"
"github.com/git-lfs/git-lfs/v3/git"
)
// GitFilter provides clean and smudge capabilities

@ -7,8 +7,8 @@ import (
"io"
"os"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/tools"
)
type cleanedAsset struct {

@ -6,11 +6,11 @@ import (
"os"
"path/filepath"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tools/humanize"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tools/humanize"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
)

@ -6,8 +6,8 @@ import (
"sync"
"time"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/rubyist/tracerx"
)

@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/git"
)
// runCatFileBatch uses 'git cat-file --batch' to get the object contents of a

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
)
// runCatFileBatchCheck uses 'git cat-file --batch-check' to get the type and

@ -4,8 +4,8 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
)
// ScanIndex returns a slice of WrappedPointer objects for all Git LFS pointers

@ -10,9 +10,9 @@ import (
"strings"
"time"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/subprocess"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/rubyist/tracerx"
)

@ -9,7 +9,7 @@ import (
"math/rand"
"testing"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/gitobj/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

@ -4,8 +4,8 @@ import (
"encoding/hex"
"sync"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/git"
)
type lockableNameSet struct {

@ -1,8 +1,8 @@
package lfs
import (
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/tools"
)
// calcSkippedRefs checks that locally cached versions of remote refs are still

@ -6,11 +6,11 @@ import (
"path"
"path/filepath"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/git/gitattr"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/git/gitattr"
)
func runScanTree(cb GitScannerFoundPointer, ref string, filter *filepathfilter.Filter, gitEnv, osEnv config.Environment) error {

@ -8,8 +8,8 @@ import (
"path/filepath"
"strings"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/rubyist/tracerx"
)

@ -8,10 +8,10 @@ import (
"sort"
"strings"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/lfsapi"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v2/tq"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/lfsapi"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/git-lfs/git-lfs/v3/tq"
"github.com/rubyist/tracerx"
)

@ -5,9 +5,9 @@ import (
"sort"
"testing"
"github.com/git-lfs/git-lfs/v2/fs"
"github.com/git-lfs/git-lfs/v2/lfs"
test "github.com/git-lfs/git-lfs/v2/t/cmd/util"
"github.com/git-lfs/git-lfs/v3/fs"
"github.com/git-lfs/git-lfs/v3/lfs"
test "github.com/git-lfs/git-lfs/v3/t/cmd/util"
"github.com/stretchr/testify/assert"
)

@ -13,7 +13,7 @@ import (
"strconv"
"strings"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/gitobj/v2"
)

@ -8,7 +8,7 @@ import (
"strings"
"testing"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/stretchr/testify/assert"
)

@ -1,9 +1,9 @@
package lfs
import (
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/tools"
)
const (

@ -10,9 +10,9 @@ import (
"testing"
"time"
"github.com/git-lfs/git-lfs/v2/config"
. "github.com/git-lfs/git-lfs/v2/lfs"
test "github.com/git-lfs/git-lfs/v2/t/cmd/util"
"github.com/git-lfs/git-lfs/v3/config"
. "github.com/git-lfs/git-lfs/v3/lfs"
test "github.com/git-lfs/git-lfs/v3/t/cmd/util"
"github.com/stretchr/testify/assert"
)

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/git-lfs/git-lfs/v2/filepathfilter"
"github.com/git-lfs/git-lfs/v3/filepathfilter"
"github.com/stretchr/testify/assert"
)

@ -8,8 +8,8 @@ import (
"runtime"
"strings"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/tools"
)
type Platform int

@ -4,7 +4,7 @@ import (
"bytes"
"testing"
"github.com/git-lfs/git-lfs/v2/tools"
"github.com/git-lfs/git-lfs/v3/tools"
"github.com/stretchr/testify/assert"
)

@ -8,9 +8,9 @@ import (
"os"
"strings"
"github.com/git-lfs/git-lfs/v2/creds"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v3/creds"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/lfshttp"
"github.com/rubyist/tracerx"
)

@ -10,10 +10,10 @@ import (
"sync/atomic"
"testing"
"github.com/git-lfs/git-lfs/v2/creds"
"github.com/git-lfs/git-lfs/v2/errors"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v3/creds"
"github.com/git-lfs/git-lfs/v3/errors"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfshttp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

@ -4,9 +4,9 @@ import (
"io"
"net/http"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/creds"
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/creds"
"github.com/git-lfs/git-lfs/v3/lfshttp"
)
func (c *Client) NewRequest(method string, e lfshttp.Endpoint, suffix string, body interface{}) (*http.Request, error) {

@ -8,10 +8,10 @@ import (
"strings"
"sync"
"github.com/git-lfs/git-lfs/v2/config"
"github.com/git-lfs/git-lfs/v2/creds"
"github.com/git-lfs/git-lfs/v2/git"
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v3/config"
"github.com/git-lfs/git-lfs/v3/creds"
"github.com/git-lfs/git-lfs/v3/git"
"github.com/git-lfs/git-lfs/v3/lfshttp"
"github.com/rubyist/tracerx"
)

@ -6,9 +6,9 @@ import (
"runtime"
"testing"
"github.com/git-lfs/git-lfs/v2/creds"
"github.com/git-lfs/git-lfs/v2/lfshttp"
"github.com/git-lfs/git-lfs/v2/ssh"
"github.com/git-lfs/git-lfs/v3/creds"
"github.com/git-lfs/git-lfs/v3/lfshttp"
"github.com/git-lfs/git-lfs/v3/ssh"
"github.com/stretchr/testify/assert"
)

@ -3,7 +3,7 @@ package lfsapi
import (
"net/http"
"github.com/git-lfs/git-lfs/v2/creds"
"github.com/git-lfs/git-lfs/v3/creds"
)
func (c *Client) doWithNegotiate(req *http.Request, credWrapper creds.CredentialHelperWrapper) (*http.Response, error) {

Some files were not shown because too many files have changed in this diff Show More