[PATCH 3/6] git.new_commit: mention return in docstring

0 views
Skip to first unread message

Rob Browning

unread,
Jul 18, 2025, 2:36:24 PMJul 18
to bup-...@googlegroups.com
Signed-off-by: Rob Browning <r...@defaultvalue.org>
---
lib/bup/git.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/bup/git.py b/lib/bup/git.py
index 0fb11da4..02e49455 100644
--- a/lib/bup/git.py
+++ b/lib/bup/git.py
@@ -967,8 +967,11 @@ class PackWriter:
author, adate_sec, adate_tz,
committer, cdate_sec, cdate_tz,
msg):
- """Create a commit object in the pack. The date_sec values must be
- epoch-seconds, and if a tz is None, the local timezone is assumed."""
+ """Create a commit object in the pack. The date_sec values
+ must be epoch-seconds, and if a tz is None, the local timezone
+ is assumed. Return the commit oid.
+
+ """
content = create_commit_blob(tree, parent,
author, adate_sec, adate_tz,
committer, cdate_sec, cdate_tz,
--
2.47.2

Reply all
Reply to author
Forward
0 new messages