Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libgit2/pygit2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.19.2
Choose a base ref
...
head repository: libgit2/pygit2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 8 commits
  • 6 files changed
  • 3 contributors

Commits on Apr 20, 2026

  1. docs(repository.diff): fix docstring keyword 'flag' -> 'flags'

    The BaseRepository.diff signature takes 'flags: DiffOption = ...', not
    'flag', but the docstring's Keyword arguments block listed 'flag'.
    
    Closes #1138
    MukundaKatta committed Apr 20, 2026
    Configuration menu
    Copy the full SHA
    7fd5bfd View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2026

  1. fix(repository): dereference reflog identity correctly

    Since its introduction in commit 81520c9 (Update to libgit2 v0.23),
    the reflog identity getter (Repository.ident) has been
    passing the (char **) variables directly to ffi.string()
    as C-strings, when they really are pointers to C-strings.
    Fix by dereferencing the pointer to a C-string first.
    
    Furthermore, Repository.ident assumes that said variables
    hold valid C-strings, when the reflog identity is initialized
    to NULL, and can be explicitly set to such with `set_ident
    (None, None)`.  So map None to ffi.NULL (which maybe_string()
    happens to already do, so I simply delegated to that...).
    
    I also added a few regression tests to ensure neither issue
    shows up again.
    
    Signed-off-by: Ethan Meng <[email protected]>
    rapidcow committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    d32573e View commit details
    Browse the repository at this point in the history
  2. fix(repository): amend annotations on reflog identity

    Since set_ident() already has type annotations, it
    seems fitting that we adorn ident() with those too. :)
    
    Also, to_bytes() is perfectly capable of mapping None
    to ffi.NULL, so the parameters on set_ident() should be
    `str | None` (aka Optional[str]).
    
    Signed-off-by: Ethan Meng <[email protected]>
    rapidcow committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    379b4d8 View commit details
    Browse the repository at this point in the history
  3. docs(repository): fix default_signature typos

    Repository.default_signature is a read-only descriptor,
    not a getter method.
    
    Signed-off-by: Ethan Meng <[email protected]>
    rapidcow committed Apr 30, 2026
    Configuration menu
    Copy the full SHA
    e7bd6d2 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2026

  1. COPYING fix text mismatch

    Fixes #1458
    jdavid committed May 3, 2026
    Configuration menu
    Copy the full SHA
    ce09444 View commit details
    Browse the repository at this point in the history
  2. CI: Build wheels from sdist

    Fixes #1454
    
    Assisted-by: Kimi-k2.6
    jdavid committed May 3, 2026
    Configuration menu
    Copy the full SHA
    beb465a View commit details
    Browse the repository at this point in the history
  3. CI: fixing wheels

    Assisted-by: Kimi-k2.6
    jdavid committed May 3, 2026
    Configuration menu
    Copy the full SHA
    433c93f View commit details
    Browse the repository at this point in the history

Commits on May 4, 2026

  1. CI: fixing wheels

    Assisted-by: Kimi-k2.6
    jdavid committed May 4, 2026
    Configuration menu
    Copy the full SHA
    c5db72d View commit details
    Browse the repository at this point in the history
Loading