Merge remote branch 'erik/v0.14.0-tz'
This commit is contained in:
8
pygit2.c
8
pygit2.c
@@ -1035,6 +1035,12 @@ Commit_get_commit_time(Commit *commit)
|
||||
return PyLong_FromLong(git_commit_time(commit->commit));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
Commit_get_commit_time_offset(Commit *commit)
|
||||
{
|
||||
return PyLong_FromLong(git_commit_time_offset(commit->commit));
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
Commit_get_committer(Commit *commit)
|
||||
{
|
||||
@@ -1111,6 +1117,8 @@ static PyGetSetDef Commit_getseters[] = {
|
||||
{"message", (getter)Commit_get_message, NULL, "message", NULL},
|
||||
{"commit_time", (getter)Commit_get_commit_time, NULL, "commit time",
|
||||
NULL},
|
||||
{"commit_time_offset", (getter)Commit_get_commit_time_offset, NULL,
|
||||
"commit time offset", NULL},
|
||||
{"committer", (getter)Commit_get_committer, NULL, "committer", NULL},
|
||||
{"author", (getter)Commit_get_author, NULL, "author", NULL},
|
||||
{"tree", (getter)Commit_get_tree, NULL, "tree object", NULL},
|
||||
|
Reference in New Issue
Block a user