diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | 43c25d457becb64ed2f76fbe2935475056a1081a (patch) | |
| tree | d2cda5f0912ee3cd733aeda626096bd64115eabb /refs.go | |
| parent | Separate stored object types from types that the user is expected to construct. (diff) | |
| signature | ||
Documentation overhaul
Diffstat (limited to 'refs.go')
| -rw-r--r-- | refs.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -75,7 +75,8 @@ func (repo *Repository) resolvePackedRef(refname string) (Hash, error) { return Hash{}, ErrInvalidObject } -// ResolveHEAD reads HEAD and returns the ref that HEAD points to. +// ResolveHEAD reads HEAD and returns the fully qualified +// ref name it points to. func (repo *Repository) ResolveHEAD() (string, error) { data, err := os.ReadFile(repo.repoPath("HEAD")) if err != nil { |
