Skip to content

Commit

Permalink
fixup! Add first cut of git-credential-fdoss
Browse files Browse the repository at this point in the history
Add example of git-credential protocol.

Addresses: #3 (comment)
  • Loading branch information
camh- committed Aug 27, 2024
1 parent a4abdd3 commit 4aebf46
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gitcred.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ import (
// [git-credential] protocol. It can be unmarshal from an [io.Reader] and
// marshaled to an [io.Writer].
//
// The git-credential protocol is a simple line-based key/value pair text
// protocol. A simple example for storing a secret is:
//
// protocol=https
// host=example.com
// username=bob
// password=secr3t
//
// A similar input without the "password" field would be used to retrieve a
// secret.
//
// [git-credential]: https://git-scm.com/docs/git-credential#IOFMT
type GitCredential struct {
Protocol string
Expand Down

0 comments on commit 4aebf46

Please sign in to comment.