Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit1fe4dc8
committed
Define GitObjectTypeString and update Object to use it
This is equivalent to the old Lit_commit_ish union; it is the typeof a literal string that has one of the four values that representactual git object types. The old Lit_commit_ish union was only usedin one place in GitPython: to annotate Object.type.This replaces that and updates its docstring, as well as the Objectclass docstring.(One change in the Object class docstring--adding a mention of theRootModule subclass of Submodule--is not conceptually related tothese other changes.)1 parent787f65c commit1fe4dc8
2 files changed
+22
-6
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
| 57 | + | |
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
61 |
| - | |
| 62 | + | |
| 63 | + | |
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
| |||
77 | 79 |
| |
78 | 80 |
| |
79 | 81 |
| |
80 |
| - | |
| 82 | + | |
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
| |||
90 | 92 |
| |
91 | 93 |
| |
92 | 94 |
| |
93 |
| - | |
| 95 | + | |
94 | 96 |
| |
95 | 97 |
| |
96 | 98 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
117 | 129 |
| |
118 | 130 |
| |
119 | 131 |
| |
| |||
140 | 152 |
| |
141 | 153 |
| |
142 | 154 |
| |
| 155 | + | |
| 156 | + | |
143 | 157 |
| |
144 | 158 |
| |
145 | 159 |
| |
|
0 commit comments
Comments
(0)