Skip to content

Commit 730414b

Browse files
committed
Remove deprecated Object.oid
1 parent d71f980 commit 730414b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 1.15.0 (UNRELEASED)
22

3+
- Many deprecated features have been removed, see below
4+
35
- Upgrade to libgit2 v1.8.0
46

57
- New `push_options` optional argument in `Repository.push(...)`
@@ -27,6 +29,7 @@ Breaking changes:
2729

2830
- Remove deprecated `oid.hex`, use `str(oid)`
2931
- Remove deprecated `object.hex`, use `str(object.id)`
32+
- Remove deprecated `object.oid`, use `object.id`
3033

3134
- Remove deprecated `Repository.add_submodule(...)`, use `Repository.submodules.add(...)`
3235
- Remove deprecated `Repository.lookup_submodule(...)`, use `Repository.submodules[...]`

src/object.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ Object_id__get__(Object *self)
9191
return git_oid_to_python(Object__id(self));
9292
}
9393

94-
PyDoc_STRVAR(Object_oid__doc__,
95-
"The object id, an instance of the Oid type.\n"
96-
"This attribute is deprecated, please use 'id'\n");
97-
98-
PyObject *
99-
Object_oid__get__(Object *self)
100-
{
101-
return Object_id__get__(self);
102-
}
103-
10494

10595
PyDoc_STRVAR(Object_short_id__doc__,
10696
"An unambiguous short (abbreviated) hex Oid string for the object.");
@@ -300,7 +290,6 @@ Object_richcompare(PyObject *o1, PyObject *o2, int op)
300290
}
301291

302292
PyGetSetDef Object_getseters[] = {
303-
GETTER(Object, oid),
304293
GETTER(Object, id),
305294
GETTER(Object, short_id),
306295
GETTER(Object, type),

0 commit comments

Comments
 (0)