8000 revwalk find childs of root reference · Issue #6283 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content
revwalk find childs of root reference #6283
Closed
@albfan

Description

@albfan

Reproduction steps

Using mesa repo to see history for tag mesa_texman_20060210 (a6f78d4eee85ccda42384ebfcc956bc8e6444c36) it tries to find parents for commit e3312644cbc which is not in any ancestor of that tag but is a child.

git clone https://gitlab.freedesktop.org/mesa/mesa
cd mesa
$ /path/to/libgit2/build/examples/lg2 log --git-dir . a6f78d4eee85ccda42384ebfcc956bc8e6444c36 | head 
a6f78d4eee85ccda42384ebfcc956bc8e6444c36 | head
commit e3312644cbc8a74c262e35672547d5cce83fd1bc
Author: Jason Ekstrand <jason.ekstrand@intel.com>
Date:   Wed Mar 30 20:31:25 2016 -0700

    anv/blit2d: Add support for W-tiled destinations
    
    Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
    Reviewed-by: Chad Versace <chad.versace@intel.com>

commit 0a6842c1bd18e1b2b7ef5e969b9f5df891604815

Expected behavior

revwalk to list only ancestors of root reference.

Actual behavior

For some repositories it list unexpected commits.

Version of libgit2 (release number or SHA1)

tested from current main

Operating system(s) tested

fedora

first reported on https://gitlab.gnome.org/GNOME/gitg/-/issues/374

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

      0