Define GitObjectTypeString and update Object to use it · gitpython-developers/GitPython@1fe4dc8 · GitHub
Skip to content

Commit 1fe4dc8

Browse files
committed
Define GitObjectTypeString and update Object to use it
This is equivalent to the old Lit_commit_ish union; it is the type of a literal string that has one of the four values that represent actual git object types. The old Lit_commit_ish union was only used in one place in GitPython: to annotate Object.type. This replaces that and updates its docstring, as well as the Object class docstring. (One change in the Object class docstring--adding a mention of the RootModule subclass of Submodule--is not conceptually related to these other changes.)
1 parent 787f65c commit 1fe4dc8

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

git/objects/base.py

Lines changed: 8 additions & 6 deletions

git/types.py

Lines changed: 14 additions & 0 deletions

0 commit comments

Comments
 (0)