@@ -54,7 +54,6 @@ func (r *Repository) parsePrettyFormatLogToList(ctx context.Context, logs []byte
5454type InitOptions struct {
5555 // Indicates whether the repository should be initialized in bare format.
5656 Bare bool
57- // The additional options to be passed to the underlying Git.
5857 CommandOptions
5958}
6059
@@ -111,7 +110,6 @@ type CloneOptions struct {
111110 Branch string
112111 // The number of revisions to clone.
113112 Depth uint64
114- // The additional options to be passed to the underlying Git.
115113 CommandOptions
116114}
117115
@@ -155,7 +153,6 @@ func Clone(ctx context.Context, url, dst string, opts ...CloneOptions) error {
155153type FetchOptions struct {
156154 // Indicates whether to prune during fetching.
157155 Prune bool
158- // The additional options to be passed to the underlying Git.
159156 CommandOptions
160157}
161158
@@ -188,7 +185,6 @@ type PullOptions struct {
188185 Remote string
189186 // The branch to pull updates from when All=false and Remote is supplied.
190187 Branch string
191- // The additional options to be passed to the underlying Git.
192188 CommandOptions
193189}
194190
@@ -224,7 +220,6 @@ func (r *Repository) Pull(ctx context.Context, opts ...PullOptions) error {
224220type PushOptions struct {
225221 // Indicates whether to set upstream tracking for the branch.
226222 SetUpstream bool
227- // The additional options to be passed to the underlying Git.
228223 CommandOptions
229224}
230225
@@ -250,7 +245,6 @@ func (r *Repository) Push(ctx context.Context, remote, branch string, opts ...Pu
250245type CheckoutOptions struct {
251246 // The base branch if checks out to a new branch.
252247 BaseBranch string
253- // The additional options to be passed to the underlying Git.
254248 CommandOptions
255249}
256250
@@ -278,7 +272,6 @@ func (r *Repository) Checkout(ctx context.Context, branch string, opts ...Checko
278272type ResetOptions struct {
279273 // Indicates whether to perform a hard reset.
280274 Hard bool
281- // The additional options to be passed to the underlying Git.
282275 CommandOptions
283276}
284277
@@ -304,7 +297,6 @@ func (r *Repository) Reset(ctx context.Context, rev string, opts ...ResetOptions
304297//
305298// Docs: https://git-scm.com/docs/git-mv
306299type MoveOptions struct {
307- // The additional options to be passed to the underlying Git.
308300 CommandOptions
309301}
310302
@@ -329,7 +321,6 @@ type AddOptions struct {
329321 All bool
330322 // The specific pathspecs to be added to index.
331323 Pathspecs []string
332- // The additional options to be passed to the underlying Git.
333324 CommandOptions
334325}
335326
@@ -358,7 +349,6 @@ func (r *Repository) Add(ctx context.Context, opts ...AddOptions) error {
358349type CommitOptions struct {
359350 // Author is the author of the changes if that's not the same as committer.
360351 Author * Signature
361- // The additional options to be passed to the underlying Git.
362352 CommandOptions
363353}
364354
@@ -401,7 +391,6 @@ type NameStatus struct {
401391//
402392// Docs: https://git-scm.com/docs/git-show#Documentation/git-show.txt---name-status
403393type ShowNameStatusOptions struct {
404- // The additional options to be passed to the underlying Git.
405394 CommandOptions
406395}
407396
@@ -451,7 +440,6 @@ func (r *Repository) ShowNameStatus(ctx context.Context, rev string, opts ...Sho
451440//
452441// Docs: https://git-scm.com/docs/git-rev-parse
453442type RevParseOptions struct {
454- // The additional options to be passed to the underlying Git.
455443 CommandOptions
456444}
457445
@@ -491,7 +479,6 @@ type CountObject struct {
491479//
492480// Docs: https://git-scm.com/docs/git-count-objects
493481type CountObjectsOptions struct {
494- // The additional options to be passed to the underlying Git.
495482 CommandOptions
496483}
497484
@@ -543,7 +530,6 @@ func (r *Repository) CountObjects(ctx context.Context, opts ...CountObjectsOptio
543530//
544531// Docs: https://git-scm.com/docs/git-fsck
545532type FsckOptions struct {
546- // The additional options to be passed to the underlying Git.
547533 CommandOptions
548534}
549535
0 commit comments