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 # 'commands' of Git LFS. It depends upon the contents of the 'docs' directory
# and converts those manpages into code. # and converts those manpages into code.
commands/mancontent_gen.go : $(wildcard docs/man/*.ronn) 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 # Targets 'all' and 'build' build binaries of Git LFS for the above release
# matrix. # matrix.

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

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

@ -7,10 +7,10 @@ import (
"path/filepath" "path/filepath"
"strings" "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/v3/git"
"github.com/git-lfs/git-lfs/v2/tools" "github.com/git-lfs/git-lfs/v3/tools"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,6 +1,6 @@
package commands 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) { func collectPointers(pointerCh *lfs.PointerChannelWrapper) ([]*lfs.WrappedPointer, error) {
var pointers []*lfs.WrappedPointer var pointers []*lfs.WrappedPointer

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

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

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

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

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

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

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

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

@ -7,7 +7,7 @@ import (
"strings" "strings"
"sync" "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/git-lfs/go-netrc/netrc"
"github.com/rubyist/tracerx" "github.com/rubyist/tracerx"
) )

8
debian/rules vendored

@ -14,7 +14,7 @@ else ifeq ($(DEB_HOST_ARCH), arm64)
endif endif
BUILD_DIR := obj-$(DEB_HOST_GNU_TYPE) 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 # 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_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 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/ cp $(BUILD_DIR)/bin/git-lfs debian/git-lfs/usr/bin/
override_dh_auto_test: override_dh_auto_test:
ln -s ../../../../../../../commands/repos $(BUILD_DIR)/src/github.com/git-lfs/git-lfs/v2/commands/repos 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/v2/bin 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 #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 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" "net/url"
"testing" "testing"
"github.com/git-lfs/git-lfs/v2/errors" "github.com/git-lfs/git-lfs/v3/errors"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/git-lfs/git-lfs/v2/subprocess" "github.com/git-lfs/git-lfs/v3/subprocess"
"github.com/rubyist/tracerx" "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. // 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. // 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 ( require (
github.com/avast/retry-go v2.4.2+incompatible github.com/avast/retry-go v2.4.2+incompatible

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "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 // Attribute wraps the structure and some operations of Git's conception of an

@ -1,6 +1,6 @@
package lfs 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 // FetchPruneConfig collects together the config options that control fetching and pruning
type FetchPruneConfig struct { type FetchPruneConfig struct {

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

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

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

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

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

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

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

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

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"strings" "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 // runCatFileBatchCheck uses 'git cat-file --batch-check' to get the type and

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

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

@ -9,7 +9,7 @@ import (
"math/rand" "math/rand"
"testing" "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/git-lfs/gitobj/v2"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -3,7 +3,7 @@ package lfsapi
import ( import (
"net/http" "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) { 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