reflog
Lookup a reflog by its name.
Signature
ts
class Repository {
reflog(name: string): Reflog;
}Parameters
- namerequired · string
Name of the reference whose reflog to lookup (e.g., "HEAD", "refs/heads/main").
Returns
- Reflog
Reflog instance for the given reference name.
Errors
- Error
Throws error if the reflog does not exist or cannot be opened.
