class

Git2::Signature

Inherits Reference < Object

An action signature (e.g. for committers, taggers, etc)

Constructors

create(name : String, email : String, time : Time) : Signature

Create a new action signature

NOTE: angle brackets ('<' and '>') characters are not allowed to be used in either the name or the email parameter.

Source
default(repo : Repository) : Signature

Create a new action signature with default user and now timestamp

This looks up the user.name and user.email from the configuration and uses the current time as the timestamp, and creates a new signature based on that information.

Source
from_buffer(signature : String) : Signature

Create a new signature by parsing the given buffer

Expected to be in the given format: Real Name <email> timestamp tzoffset, where timestamp is the number of seconds since the Unix epoch and tzoffset is the timezone offset in hhmm format (NOTE: lack of colon separator).

Source
now(name : String, email : String) : Signature

Create a new action signature with a timestamp of 'now'

Source

Instance methods

dup

Create a copy of an existing signature

Source
email

Email of the author

Source
finalize
Source
name

Full name of the author

Source
time

Time when the action happened

Source
to_unsafe
Source