Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git index version 3 support #1960

Open
sebastianst opened this issue Sep 6, 2024 · 1 comment
Open

Git index version 3 support #1960

sebastianst opened this issue Sep 6, 2024 · 1 comment

Comments

@sebastianst
Copy link

Using git python to add files to an index fails at an index head assertion if the local repo is being otherwise worked on with git 2.46.0:

GitPython/git/index/fun.py

Lines 209 to 210 in cfadd9e

# TODO: Handle version 3: extended data, see read-cache.c.
assert version in (1, 2)

Is it planned to add support for version 3 soon?

I couldn't find any ticket tracking this, so apologies if this is a duplicate.

@Byron
Copy link
Member

Byron commented Sep 6, 2024

There is no plan to add support for extended index flag in V3, even though it would probably be quite easy to add if someone wanted to contribute support for it.

Generally, I probably wouldn't trust the index implementation as it is here and if possible, repo.git might be able to do the same with a decent amount of convenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants