Documentation
¶
Index ¶
- type Repo
- func (r *Repo) Checkout(extraArgs ...string) error
- func (r *Repo) Clean(extraArgs ...string) error
- func (r *Repo) Fetch(extraArgs ...string) error
- func (r *Repo) GetCommitSignature(commit string) (key string, signed bool, err error)
- func (r *Repo) HardReset() error
- func (r *Repo) Init() error
- func (r *Repo) Log(extraArgs ...string) error
- func (r *Repo) Pull(extraArgs ...string) error
- func (r *Repo) Push(extraArgs ...string) error
- func (r *Repo) SetDebug(d bool)
- func (r *Repo) SetRemote(remoteName string, remoteUrl string) error
- func (r *Repo) SetTrustedSignatures(sigs []string)
- func (r *Repo) SubmoduleInit(extraArgs ...string) error
- func (r *Repo) SubmoduleSync(extraArgs ...string) error
- func (r *Repo) SubmoduleUpdate(extraArgs ...string) error
- func (r *Repo) VerifyCommit(commit string) (bool, error)
- func (r *Repo) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) GetCommitSignature ¶
verify a given commit's GPG sig anything that refers to commit will work (like HEAD~3)
func (*Repo) HardReset ¶ added in v0.0.3
reset and remove index also gets rid of "index smaller than expected" problem
func (*Repo) SetTrustedSignatures ¶
SetTrustedSignatures sets a list of signatures considered valid for VerifyCommit() USE LONG FORMAT (full fingerprint), for now git log only passes 16 characters of fingerprint but if that ever changes any sig that will be shorter than that won't be matched
func (*Repo) SubmoduleInit ¶
func (*Repo) SubmoduleSync ¶
func (*Repo) SubmoduleUpdate ¶
func (*Repo) VerifyCommit ¶
VerifyCommit checks if given commit is signed by one of sigs set in SetTrustedSignatures git log only passes 16 characters of fingerprint so it only checks for substring of that signature
Click to show internal directories.
Click to hide internal directories.