Skip to content

gitattributes are supported but not documented #1017

Closed
@aspiers

Description

@aspiers

I see that pygit2.Repository.get_attr() was added 5 years ago by 74b81bf to allow retrieval of attributes, and it's still there:

pygit2/pygit2/repository.py

Lines 1218 to 1223 in fb083cc

def get_attr(self, path, name, flags=0):
"""
Retrieve an attribute for a file by path.
Returns: a boolean, None if the value is unspecified, or string with
the value of the attribute.

but it is not mentioned anywhere in the docs.

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