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