diff --git a/pygit2.c b/pygit2.c index 487e117..7cc0890 100644 --- a/pygit2.c +++ b/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},