Add a ReInit function #647
Loading…
Reference in New Issue
No description provided.
Delete Branch "reinit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
libgit2 stores the lookup paths for gitconfig files in its global state.
This means that after a program changes its effective uid libgit2 will
still look for gitconfig files in the home directory of the original
uid. Expose a way to call C.git_libgit2_init so a user can reinitialize
the libgit2 global state.
oh, interesting use case! Although would something like this work?
if it doesn't, is there any way in which
init()
can be refactored so that there is less repetition?thanks @lhchavez for taking a look, I pushed a commit to reduce the repetition, which seems to work fine, though I am not super happy with the function naming.
That name is fine. Since it's a private function, if you ever come up with a better alternative, we can change it without fear of breaking anything!