@@ -56,7 +56,8 @@ func (r *Repository) parsePrettyFormatLogToList(timeout time.Duration, logs []by
5656type InitOptions struct {
5757 // Indicates whether the repository should be initialized in bare format.
5858 Bare bool
59- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
59+ // The timeout duration before giving up for each shell command execution.
60+ // The default timeout duration will be used when not supplied.
6061 Timeout time.Duration
6162}
6263
@@ -108,7 +109,8 @@ type CloneOptions struct {
108109 Quiet bool
109110 // The branch to checkout for the working tree when Bare=false.
110111 Branch string
111- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
112+ // The timeout duration before giving up for each shell command execution.
113+ // The default timeout duration will be used when not supplied.
112114 Timeout time.Duration
113115}
114116
@@ -147,7 +149,8 @@ func Clone(url, dst string, opts ...CloneOptions) error {
147149type FetchOptions struct {
148150 // Indicates whether to prune during fetching.
149151 Prune bool
150- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
152+ // The timeout duration before giving up for each shell command execution.
153+ // The default timeout duration will be used when not supplied.
151154 Timeout time.Duration
152155}
153156
@@ -178,7 +181,8 @@ type PullOptions struct {
178181 Remote string
179182 // The branch to pull updates from when All=false and Remote is supplied.
180183 Branch string
181- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
184+ // The timeout duration before giving up for each shell command execution.
185+ // The default timeout duration will be used when not supplied.
182186 Timeout time.Duration
183187}
184188
@@ -212,7 +216,8 @@ func (r *Repository) Pull(opts ...PullOptions) error {
212216type PushOptions struct {
213217 // The environment variables set for the push.
214218 Envs []string
215- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
219+ // The timeout duration before giving up for each shell command execution.
220+ // The default timeout duration will be used when not supplied.
216221 Timeout time.Duration
217222}
218223
@@ -232,7 +237,8 @@ func (r *Repository) Push(remote, branch string, opts ...PushOptions) error {
232237type CheckoutOptions struct {
233238 // The base branch if checks out to a new branch.
234239 BaseBranch string
235- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
240+ // The timeout duration before giving up for each shell command execution.
241+ // The default timeout duration will be used when not supplied.
236242 Timeout time.Duration
237243}
238244
@@ -261,7 +267,8 @@ func (r *Repository) Checkout(branch string, opts ...CheckoutOptions) error {
261267type ResetOptions struct {
262268 // Indicates whether to perform a hard reset.
263269 Hard bool
264- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
270+ // The timeout duration before giving up for each shell command execution.
271+ // The default timeout duration will be used when not supplied.
265272 Timeout time.Duration
266273}
267274
@@ -284,7 +291,8 @@ func (r *Repository) Reset(rev string, opts ...ResetOptions) error {
284291// MoveOptions contains optional arguments for moving a file, a directory, or a symlink.
285292// Docs: https://git-scm.com/docs/git-mv
286293type MoveOptions struct {
287- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
294+ // The timeout duration before giving up for each shell command execution.
295+ // The default timeout duration will be used when not supplied.
288296 Timeout time.Duration
289297}
290298
@@ -306,7 +314,8 @@ type AddOptions struct {
306314 All bool
307315 // The specific pathspecs to be added to index.
308316 Pathsepcs []string
309- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
317+ // The timeout duration before giving up for each shell command execution.
318+ // The default timeout duration will be used when not supplied.
310319 Timeout time.Duration
311320}
312321
@@ -334,7 +343,8 @@ func (r *Repository) Add(opts ...AddOptions) error {
334343type CommitOptions struct {
335344 // Author is the author of the changes if that's not the same as committer.
336345 Author * Signature
337- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
346+ // The timeout duration before giving up for each shell command execution.
347+ // The default timeout duration will be used when not supplied.
338348 Timeout time.Duration
339349}
340350
@@ -371,7 +381,8 @@ type NameStatus struct {
371381// ShowNameStatusOptions contains optional arguments for showing name status.
372382// Docs: https://git-scm.com/docs/git-show#Documentation/git-show.txt---name-status
373383type ShowNameStatusOptions struct {
374- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
384+ // The timeout duration before giving up for each shell command execution.
385+ // The default timeout duration will be used when not supplied.
375386 Timeout time.Duration
376387}
377388
@@ -419,7 +430,8 @@ func (r *Repository) ShowNameStatus(commitID string, opts ...ShowNameStatusOptio
419430// RevParseOptions contains optional arguments for parsing revision.
420431// Docs: https://git-scm.com/docs/git-rev-parse
421432type RevParseOptions struct {
422- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
433+ // The timeout duration before giving up for each shell command execution.
434+ // The default timeout duration will be used when not supplied.
423435 Timeout time.Duration
424436}
425437
@@ -455,7 +467,8 @@ type CountObject struct {
455467// CountObjectsOptions contains optional arguments for counting objects.
456468// Docs: https://git-scm.com/docs/git-count-objects
457469type CountObjectsOptions struct {
458- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
470+ // The timeout duration before giving up for each shell command execution.
471+ // The default timeout duration will be used when not supplied.
459472 Timeout time.Duration
460473}
461474
@@ -504,7 +517,8 @@ func (r *Repository) CountObjects(opts ...CountObjectsOptions) (*CountObject, er
504517// FsckOptions contains optional arguments for verifying the objects.
505518// Docs: https://git-scm.com/docs/git-fsck
506519type FsckOptions struct {
507- // The timeout duration before giving up. The default timeout duration will be used when not supplied.
520+ // The timeout duration before giving up for each shell command execution.
521+ // The default timeout duration will be used when not supplied.
508522 Timeout time.Duration
509523}
510524
0 commit comments