Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
URL: http://github.com/libgit2/pygit2/discussions/1447
href="https://github.githubassets.com/assets/github-f825c0edd7ad57f8.css" />
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes I want to do something to a Repository but using a temporary index file. My reason is that the operation messes with the index file and I don't want my main index file get messed up. (For example checkout/extract a subtree to a temporary directory.)
But it seems that
Repository.indexis not assignable.I successfully accomplished the job in C (using
git_index_openandgit_repository_set_index). Is it possible in pygit2?Beta Was this translation helpful? Give feedback.
All reactions