(commit plumbing.Hash)
| 260 | } |
| 261 | |
| 262 | func (w *Worktree) setHEADToCommit(commit plumbing.Hash) error { |
| 263 | head := plumbing.NewHashReference(plumbing.HEAD, commit) |
| 264 | return w.r.Storer.SetReference(head) |
| 265 | } |
| 266 | |
| 267 | func (w *Worktree) setHEADToBranch(branch plumbing.ReferenceName, commit plumbing.Hash) error { |
| 268 | target, err := w.r.Storer.Reference(branch) |
no test coverage detected