From 4e0803c27b9dcafdc6358e7fd5cd57684d911291 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 8 Sep 2026 15:51:04 +0300 Subject: [PATCH] Clarify Commit.commit_time and commit_time_offset documentation Clarify the documentation for these fields, so the user doesn't have to guess if they contain strings or datetime.datetime objects or what. --- src/commit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commit.c b/src/commit.c index 2c2533d7..023dd7c6 100644 --- a/src/commit.c +++ b/src/commit.c @@ -148,7 +148,7 @@ Commit_raw_message__get__(Commit *self) } -PyDoc_STRVAR(Commit_commit_time__doc__, "Commit time."); +PyDoc_STRVAR(Commit_commit_time__doc__, "Commit time, an int (Unix timestamp)."); PyObject * Commit_commit_time__get__(Commit *self) @@ -158,7 +158,7 @@ Commit_commit_time__get__(Commit *self) } -PyDoc_STRVAR(Commit_commit_time_offset__doc__, "Commit time offset."); +PyDoc_STRVAR(Commit_commit_time_offset__doc__, "Commit time zone UTC offset, an int (minutes)."); PyObject * Commit_commit_time_offset__get__(Commit *self)