Fix CredentialPattern doc typos
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
This commit is contained in:
parent
3773068f58
commit
0b4f087b46
1 changed files with 2 additions and 2 deletions
|
|
@ -95,9 +95,9 @@ func (c *Client) Command(ctx context.Context, args ...string) (*Command, error)
|
|||
return &Command{cmd}, nil
|
||||
}
|
||||
|
||||
// CredentialPattern is used to indicate to AuthenticatedCommand which patterns git should match
|
||||
// CredentialPattern is used to inform AuthenticatedCommand which patterns Git should match
|
||||
// against when trying to find credentials. It is a little over-engineered as a type because we
|
||||
// want AuthenticatedCommand to have a clear complication error when this is not provided,
|
||||
// want AuthenticatedCommand to have a clear compilation error when this is not provided,
|
||||
// as opposed to using a string which might compile with `client.AuthenticatedCommand(ctx, "fetch")`.
|
||||
//
|
||||
// It is only usable when constructed by another function in the package because the empty pattern,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue