diff --git a/git/patch.go b/git/patch.go index 9e8735b8c27baa050f1e85338eaf301bb019a567..ad8d98255eabd255fb0d0e403d2eec21dfb81860 100644 --- a/git/patch.go +++ b/git/patch.go @@ -7,8 +7,8 @@ import ( "strings" "sync" - "github.com/dustin/go-humanize/english" "github.com/aymanbagabas/git-module" + "github.com/dustin/go-humanize/english" "github.com/sergi/go-diff/diffmatchpatch" ) diff --git a/pkg/git/git.go b/pkg/git/git.go index e3d3d485af754d042b07eb0e326661c94a079406..e523b90a279dde5590614f20c419b24a135aa42d 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -7,10 +7,10 @@ import ( "path/filepath" "strings" + gitm "github.com/aymanbagabas/git-module" "github.com/charmbracelet/log" "github.com/charmbracelet/soft-serve/git" "github.com/go-git/go-git/v5/plumbing/format/pktline" - gitm "github.com/aymanbagabas/git-module" ) // WritePktline encodes and writes a pktline to the given writer. diff --git a/pkg/lfs/scanner.go b/pkg/lfs/scanner.go index 344ed43cb27338cd383f26300022fa8ae505d987..6cd19691fae22c5f96da572b97d93c4c6109571f 100644 --- a/pkg/lfs/scanner.go +++ b/pkg/lfs/scanner.go @@ -10,8 +10,8 @@ import ( "strings" "sync" - "github.com/charmbracelet/soft-serve/git" gitm "github.com/aymanbagabas/git-module" + "github.com/charmbracelet/soft-serve/git" ) // SearchPointerBlobs scans the whole repository for LFS pointer files diff --git a/pkg/ssh/cmd/branch.go b/pkg/ssh/cmd/branch.go index 2a512159da23341d8c4e3ebc4f068d1e3b445a38..c43ce974f69d6d117d2e80bb91d580f578f6e928 100644 --- a/pkg/ssh/cmd/branch.go +++ b/pkg/ssh/cmd/branch.go @@ -4,11 +4,11 @@ import ( "fmt" "strings" + gitm "github.com/aymanbagabas/git-module" "github.com/charmbracelet/soft-serve/git" "github.com/charmbracelet/soft-serve/pkg/backend" "github.com/charmbracelet/soft-serve/pkg/proto" "github.com/charmbracelet/soft-serve/pkg/webhook" - gitm "github.com/aymanbagabas/git-module" "github.com/spf13/cobra" ) diff --git a/pkg/ui/pages/repo/files.go b/pkg/ui/pages/repo/files.go index 828e81bae96a8a154e8ebfe32d2b93116230748d..4d55853648b37ee5abd11029cebe33499cb82731 100644 --- a/pkg/ui/pages/repo/files.go +++ b/pkg/ui/pages/repo/files.go @@ -7,6 +7,7 @@ import ( "strings" "github.com/alecthomas/chroma/lexers" + gitm "github.com/aymanbagabas/git-module" "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/spinner" tea "github.com/charmbracelet/bubbletea" @@ -15,7 +16,6 @@ import ( "github.com/charmbracelet/soft-serve/pkg/ui/common" "github.com/charmbracelet/soft-serve/pkg/ui/components/code" "github.com/charmbracelet/soft-serve/pkg/ui/components/selector" - gitm "github.com/aymanbagabas/git-module" ) type filesView int diff --git a/pkg/ui/pages/repo/stash.go b/pkg/ui/pages/repo/stash.go index deb670a3173a138e4d8bc7509805844e5fd81ce6..2d1fa69ff6d2e6ea805d4c3d517889312d49819b 100644 --- a/pkg/ui/pages/repo/stash.go +++ b/pkg/ui/pages/repo/stash.go @@ -3,6 +3,7 @@ package repo import ( "fmt" + gitm "github.com/aymanbagabas/git-module" "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/spinner" tea "github.com/charmbracelet/bubbletea" @@ -12,7 +13,6 @@ import ( "github.com/charmbracelet/soft-serve/pkg/ui/common" "github.com/charmbracelet/soft-serve/pkg/ui/components/code" "github.com/charmbracelet/soft-serve/pkg/ui/components/selector" - gitm "github.com/aymanbagabas/git-module" ) type stashState int diff --git a/pkg/ui/pages/repo/stashitem.go b/pkg/ui/pages/repo/stashitem.go index 128c5b5d19ea37864eddbea48e881a081a74d25b..cc2d3f3a0f107bad5642452a88e5ce53ab6e1b7b 100644 --- a/pkg/ui/pages/repo/stashitem.go +++ b/pkg/ui/pages/repo/stashitem.go @@ -4,11 +4,11 @@ import ( "fmt" "io" + gitm "github.com/aymanbagabas/git-module" "github.com/charmbracelet/bubbles/key" "github.com/charmbracelet/bubbles/list" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/soft-serve/pkg/ui/common" - gitm "github.com/aymanbagabas/git-module" ) // StashItem represents a stash item. diff --git a/pkg/webhook/push.go b/pkg/webhook/push.go index 30bb5be3def8008cfe97590ba74764d2ad8f6a1a..8af2c13982fcfa24f3e9e0168bd7ba857efa3bf6 100644 --- a/pkg/webhook/push.go +++ b/pkg/webhook/push.go @@ -4,12 +4,12 @@ import ( "context" "fmt" + gitm "github.com/aymanbagabas/git-module" "github.com/charmbracelet/soft-serve/git" "github.com/charmbracelet/soft-serve/pkg/config" "github.com/charmbracelet/soft-serve/pkg/db" "github.com/charmbracelet/soft-serve/pkg/proto" "github.com/charmbracelet/soft-serve/pkg/store" - gitm "github.com/aymanbagabas/git-module" ) // PushEvent is a push event.