10000 repo.index create new index on ever reference - surprising · Issue #428 · gitpython-developers/GitPython · GitHub
[go: up one dir, main page]

Skip to content
repo.index create new index on ever reference - surprising #428
Closed
@barry-scott

Description

@barry-scott

was surprised to find that the index property of Repo created a new IndexFile object on each reference. This would have lead to code with terrible performance if I had not read the source and discovered this. At a minimum this needs a warning in docs.

I would suggest that you either make index stable until the user asked for it to be updated.
Or drop the property in favor of a function that returns a new IndexFile().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0