Michal Suchánek

Results 177 comments of Michal Suchánek

``` import pygit2 from pygit2.enums import FileMode from pathlib import Path import tempfile import shutil import sys print(f"python: {sys.version}") print(f"libgit2: {pygit2.LIBGIT2_VERSION}") print(f"pygit2: {pygit2.__version__}") data = { 'longterm': '6.6', 'master': '6.11-rc6',...

Like what does exception saying "No error" mean? Shouldn't `GIT_OK` *not* throw an exception? Is this supposed to work or not?

python: 3.11.11 (main, Dec 06 2024, 17:06:18) [GCC] libgit2: 1.9.0 pygit2: 1.17.0 GitError('no error')

I am trying to fabricate a repository. There are a number of ways to go about that, and the documentation is not clear enough to be able to pick one...

git init new-repo cd new-repo echo 6.6 > version git add version git commit -m longterm\ commit version git branch longterm echo 6.10 > version git commit -m stable\ commit...

Note this is not completely equivalent because the API for updating branches does not match commandline. The problem seems to be that updating unborn branch is broken.

right, you need to add the version file

and no, this does not involve switch.

The difference between the commandline and the libgit implementation is that the commandline advances the master branch multiple times while the libgit2 implementation probably does not, or would not if...

Note that the stacking of the branches may not be the same because the 'data' hash does not list them from oldest to newest but whatever.