append
Append a new entry to the reflog.
Signature
ts
class Reflog {
append(newOid: string, committer: Signature, msg?: string | null | undefined): void;
}Parameters
- newOidrequired · string
New object ID (SHA1) for this reflog entry.
- committerrequired · Signature
Committer signature for this reflog entry.
- emailrequired · string
Email on the signature.
- namerequired · string
Name on the signature.
- timestamprequired · number
Time in seconds, from epoch
- emailrequired · string
- msgnull | string
Optional message for this reflog entry.
Errors
- Error
Throws error if the OID is invalid or if appending fails.
