@@ -87,12 +87,12 @@ func newFakeGit() *fakeGit {
8787 }
8888}
8989
90- func (f * fakeGit ) IsGitRepo (ctx context.Context , repoDir string ) (bool , error ) {
90+ func (f * fakeGit ) IsGitRepo (_ context.Context , repoDir string ) (bool , error ) {
9191 _ , ok := f .repos [repoDir ]
9292 return ok , nil
9393}
9494
95- func (f * fakeGit ) Clone (ctx context.Context , url string , dest string ) error {
95+ func (f * fakeGit ) Clone (_ context.Context , url string , dest string ) error {
9696 if err := os .MkdirAll (dest , 0o755 ); err != nil {
9797 return err
9898 }
@@ -104,26 +104,26 @@ func (f *fakeGit) Clone(ctx context.Context, url string, dest string) error {
104104 return nil
105105}
106106
107- func (f * fakeGit ) CloneBare (ctx context.Context , url string , dest string , depth int ) error {
107+ func (f * fakeGit ) CloneBare (ctx context.Context , url string , dest string , _ int ) error {
108108 return f .Clone (ctx , url , dest )
109109}
110110
111- func (f * fakeGit ) Fetch (ctx context.Context , repoDir string , remote string , refspec string ) error {
111+ func (f * fakeGit ) Fetch (_ context.Context , repoDir string , remote string , refspec string ) error {
112112 f .fetches = append (f .fetches , fetchCall {repoDir : repoDir , remote : remote , refspec : refspec })
113113 return f .fetchErr
114114}
115115
116- func (f * fakeGit ) FetchBranch (ctx context.Context , repoDir string , remote string , branch string ) error {
116+ func (f * fakeGit ) FetchBranch (_ context.Context , repoDir string , remote string , branch string ) error {
117117 f .branchFetches = append (f .branchFetches , branchFetchCall {repoDir : repoDir , remote : remote , branch : branch })
118118 return f .fetchBranchErr
119119}
120120
121- func (f * fakeGit ) SubmoduleUpdate (ctx context.Context , repoDir string ) error {
121+ func (f * fakeGit ) SubmoduleUpdate (_ context.Context , repoDir string ) error {
122122 f .submoduleUpdates = append (f .submoduleUpdates , repoDir )
123123 return f .submoduleUpdateErr
124124}
125125
126- func (f * fakeGit ) WorktreeAdd (ctx context.Context , repoDir string , worktreePath string , branch string ) error {
126+ func (f * fakeGit ) WorktreeAdd (_ context.Context , repoDir string , worktreePath string , branch string ) error {
127127 if err := os .MkdirAll (worktreePath , 0o755 ); err != nil {
128128 return err
129129 }
@@ -132,7 +132,7 @@ func (f *fakeGit) WorktreeAdd(ctx context.Context, repoDir string, worktreePath
132132 return nil
133133}
134134
135- func (f * fakeGit ) WorktreeRemove (ctx context.Context , repoDir string , worktreePath string , force bool ) error {
135+ func (f * fakeGit ) WorktreeRemove (_ context.Context , repoDir string , worktreePath string , _ bool ) error {
136136 if err := os .RemoveAll (worktreePath ); err != nil {
137137 return err
138138 }
@@ -145,7 +145,7 @@ func (f *fakeGit) WorktreeRemove(ctx context.Context, repoDir string, worktreePa
145145 return nil
146146}
147147
148- func (f * fakeGit ) WorktreeList (ctx context.Context , repoDir string ) ([]git.Worktree , error ) {
148+ func (f * fakeGit ) WorktreeList (_ context.Context , repoDir string ) ([]git.Worktree , error ) {
149149 repo , ok := f .repos [repoDir ]
150150 if ! ok {
151151 return nil , nil
@@ -157,7 +157,7 @@ func (f *fakeGit) WorktreeList(ctx context.Context, repoDir string) ([]git.Workt
157157 return worktrees , nil
158158}
159159
160- func (f * fakeGit ) HasWorktreeForBranch (ctx context.Context , repoDir string , branch string ) (string , bool , error ) {
160+ func (f * fakeGit ) HasWorktreeForBranch (_ context.Context , repoDir string , branch string ) (string , bool , error ) {
161161 if repo , ok := f .repos [repoDir ]; ok {
162162 if path , ok := repo .worktrees [branch ]; ok {
163163 return path , true , nil
@@ -166,15 +166,15 @@ func (f *fakeGit) HasWorktreeForBranch(ctx context.Context, repoDir string, bran
166166 return "" , false , nil
167167}
168168
169- func (f * fakeGit ) OriginURL (ctx context.Context , repoDir string ) (string , error ) {
169+ func (f * fakeGit ) OriginURL (_ context.Context , repoDir string ) (string , error ) {
170170 repo , ok := f .repos [repoDir ]
171171 if ! ok {
172172 return "" , nil
173173 }
174174 return repo .origin , nil
175175}
176176
177- func (f * fakeGit ) AddRemote (ctx context.Context , repoDir string , name string , url string ) error {
177+ func (f * fakeGit ) AddRemote (_ context.Context , repoDir string , name string , url string ) error {
178178 repo , ok := f .repos [repoDir ]
179179 if ! ok {
180180 return nil
@@ -186,7 +186,7 @@ func (f *fakeGit) AddRemote(ctx context.Context, repoDir string, name string, ur
186186 return nil
187187}
188188
189- func (f * fakeGit ) HasRemote (ctx context.Context , repoDir string , name string ) (bool , error ) {
189+ func (f * fakeGit ) HasRemote (_ context.Context , repoDir string , name string ) (bool , error ) {
190190 repo , ok := f .repos [repoDir ]
191191 if ! ok {
192192 return false , nil
@@ -195,22 +195,22 @@ func (f *fakeGit) HasRemote(ctx context.Context, repoDir string, name string) (b
195195 return exists , nil
196196}
197197
198- func (f * fakeGit ) SetUpstream (ctx context.Context , repoDir string , branch string , upstream string ) error {
198+ func (f * fakeGit ) SetUpstream (_ context.Context , repoDir string , branch string , upstream string ) error {
199199 f .upstreams = append (f .upstreams , upstreamCall {repoDir : repoDir , branch : branch , upstream : upstream })
200200 return nil
201201}
202202
203- func (f * fakeGit ) ConfigSet (ctx context.Context , repoDir string , key string , value string ) error {
203+ func (f * fakeGit ) ConfigSet (_ context.Context , repoDir string , key string , value string ) error {
204204 f .configs = append (f .configs , configCall {repoDir : repoDir , key : key , value : value })
205205 return nil
206206}
207207
208- func (f * fakeGit ) ConfigSetWorktree (ctx context.Context , repoDir string , key string , value string ) error {
208+ func (f * fakeGit ) ConfigSetWorktree (_ context.Context , repoDir string , key string , value string ) error {
209209 f .configs = append (f .configs , configCall {repoDir : repoDir , key : "--worktree:" + key , value : value })
210210 return nil
211211}
212212
213- func (f * fakeGit ) WorktreeAddBranch (ctx context.Context , repoDir string , worktreePath string , branch string , startPoint string , force bool ) error {
213+ func (f * fakeGit ) WorktreeAddBranch (_ context.Context , repoDir string , worktreePath string , branch string , startPoint string , _ bool ) error {
214214 if f .branchAddFirstCallErr != nil && f .branchAddCallCount == 0 {
215215 f .branchAddCallCount ++
216216 return f .branchAddFirstCallErr
0 commit comments