Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

.gitignore:foo**/bar behaves differently between Git and libgit2 #7145

Open
@tomokinakamaru

Description

@tomokinakamaru

I noticed that the gitignore patternfoo**/bar behaves differently between libgit2 and Git. When.gitignore containsfoo**/bar,

  • Git ignore a file namedfoobar, while
  • libgit2 doesnot ignorefoobar.

I tested libgit2 using the following code:

https://github.com/tomokinakamaru/libgit2/blob/da0c65d8977e7dcd29928ff8ac39ba58d4e7e45d/tests/libgit2/ignore/path.c#L35-L40 -> Test failure

https://github.com/tomokinakamaru/libgit2/blob/da0c65d8977e7dcd29928ff8ac39ba58d4e7e45d/tests/libgit2/ignore/status.c#L94-L102 -> Test failure

Git's behavior is non-intuitive in my personal opinion :( But I founda real-world example of this pattern, which suggests that this difference could have practical implications given the wide use of libgit2.

Is this difference intentional or a known issue? Please let me know if I am misunderstanding something here, and thank you for maintaining this nice library!

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp