Skip to content

Commit b0e5bff

Browse files
committed
Undo some expansion of "reference" parameter
This keeps most of the changes from the previous commit, but it undoes the expansion of the git object types a lightweight tag can refer to into GitPython git.objects.base.Object-based types, which seems more misleading than helpful because an uncareful reading could lead to an incorrect belief that the corresponding argument should or could be an object of such types.
1 parent 110706e commit b0e5bff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

git/refs/tag.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def create(
106106
107107
:param reference:
108108
A reference to the :class:`~git.objects.base.Object` you want to tag.
109-
The referenced object can be a :class:`~git.objects.commit.Commit`,
110-
:class:`~git.objects.tree.Tree`, or :class:`~git.objects.blob.Blob`.
109+
The referenced object can be a commit, tree, or blob.
111110
112111
:param logmsg:
113112
If not None, the message will be used in your tag object. This will also

0 commit comments

Comments
 (0)