Skip to content

[Commits Bug]: pkgcheck should compare to merge-base rather than origin #758

@mgorny

Description

@mgorny

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Running pkgcheck scan --commits check all packages changed compared to origin. When you have an unrebased branch, this means reporting results for packages that have changed in origin rather than your changes, which are entirely irrelevant and clutter the output.

Expected Behavior

I think it would be better to compare against merge-base between origin and the current branch.

master commit id

n/a

HEAD link

n/a

pkgcheck version

pkgcheck 0.10.38-4-g35bc261 -- Fri, 1 Aug 2025 18:16:44 +0300

pkgcore version

pkgcore 0.12.31-5-ge9e19ac -- Sat, 23 Aug 2025 10:05:02 +0300

git remotes configuration

mgorny git@github.com:mgorny/gentoo (fetch)
mgorny git@github.com:mgorny/gentoo (push)
origin git@git.gentoo.org:repo/gentoo.git (fetch)
origin git@git.gentoo.org:repo/gentoo.git (push)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions